aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'hst/template.go')
-rw-r--r--hst/template.go6
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")}},