From 9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 15 Aug 2025 03:30:51 +0900 Subject: hst/fs: implement overlay fstype This finally exposes overlay mounts in the high level hakurei API. Signed-off-by: Ophestra --- hst/template.go | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'hst/template.go') diff --git a/hst/template.go b/hst/template.go index db6748ec..82e0b7d9 100644 --- a/hst/template.go +++ b/hst/template.go @@ -79,6 +79,12 @@ func Template() *Config { }, Filesystem: []FilesystemConfigJSON{ {&FSEphemeral{Dst: container.AbsFHSTmp, Write: true, Perm: 0755}}, + {&FSOverlay{ + Dst: container.MustAbs("/nix/store"), + Lower: []*container.Absolute{container.MustAbs("/mnt-root/nix/.ro-store")}, + Upper: container.MustAbs("/mnt-root/nix/.rw-store/upper"), + Work: container.MustAbs("/mnt-root/nix/.rw-store/work"), + }}, {&FSBind{Src: container.MustAbs("/nix/store")}}, {&FSBind{Src: container.AbsFHSRun.Append("current-system")}}, {&FSBind{Src: container.AbsFHSRun.Append("opengl-driver")}}, -- cgit v1.3.1