diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-08-12 04:38:45 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-08-14 04:52:49 +0900 |
| commit | 99ac96511bed17f48d908db3d00a1f48579ba011 (patch) | |
| tree | 30d404efb7256c9f053f64192068637d6b846db4 /hst/template.go | |
| parent | e99d7affb0c128fa82722f9b3d79c99b5e5918cd (diff) | |
hst/fs: interface filesystem config
This allows mount points to be represented by different underlying structs.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst/template.go')
| -rw-r--r-- | hst/template.go | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/hst/template.go b/hst/template.go index dda43a03..db6748ec 100644 --- a/hst/template.go +++ b/hst/template.go @@ -77,15 +77,14 @@ func Template() *Config { "GOOGLE_DEFAULT_CLIENT_ID": "77185425430.apps.googleusercontent.com", "GOOGLE_DEFAULT_CLIENT_SECRET": "OTJgUOQcT7lO7GsGZq2G4IlT", }, - Filesystem: []FilesystemConfig{ - {Dst: container.AbsFHSTmp, Src: container.AbsNonexistent, Write: true}, - {Src: container.MustAbs("/nix/store")}, - {Src: container.AbsFHSRun.Append("current-system")}, - {Src: container.AbsFHSRun.Append("opengl-driver")}, - {Src: container.AbsFHSVar.Append("db/nix-channels")}, - {Src: container.AbsFHSVarLib.Append("hakurei/u0/org.chromium.Chromium"), - Dst: container.MustAbs("/data/data/org.chromium.Chromium"), Write: true, Must: true}, - {Src: container.AbsFHSDev.Append("dri"), Device: true}, + Filesystem: []FilesystemConfigJSON{ + {&FSEphemeral{Dst: container.AbsFHSTmp, Write: true, Perm: 0755}}, + {&FSBind{Src: container.MustAbs("/nix/store")}}, + {&FSBind{Src: container.AbsFHSRun.Append("current-system")}}, + {&FSBind{Src: container.AbsFHSRun.Append("opengl-driver")}}, + {&FSBind{Src: container.AbsFHSVarLib.Append("hakurei/u0/org.chromium.Chromium"), + Dst: container.MustAbs("/data/data/org.chromium.Chromium"), Write: true}}, + {&FSBind{Src: container.AbsFHSDev.Append("dri"), Device: true, Optional: true}}, }, Link: []LinkConfig{{container.AbsFHSRunUser.Append("65534"), container.FHSRunUser + "150"}}, AutoRoot: container.AbsFHSVarLib.Append("hakurei/base/org.debian"), |
