diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-15 03:30:51 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-15 04:00:55 +0900 |
| commit | 9ed3ba85eaba4bc4bd12b290dc4daf00ffe159dc (patch) | |
| tree | 03301910c40c59eb94029f1a93b1e74e21b5226a /hst/template.go | |
| parent | 4433c993fae86634b813ee212803a84aaeedd374 (diff) | |
hst/fs: implement overlay fstype
This finally exposes overlay mounts in the high level hakurei API.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/template.go')
| -rw-r--r-- | hst/template.go | 6 |
1 files changed, 6 insertions, 0 deletions
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")}}, |
