aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-11 13:59:10 +0900
committerOphestra <cat@gensokyo.uk>2025-10-11 13:59:10 +0900
commit8874aaf81b6d8028bd4dc3d4a1f09bf16b349085 (patch)
tree0c2a918487a5b595a9675f17893f9c5aa8f60c29
parent04a27c8e475c084b7dc94b00f57d7fd77201ee57 (diff)
hst: remove template bind nix store
This does not add anything meaningful to the template, since there are already prior examples showing src-only bind ops. Remove this since it causes confusion by covering the previous mount point targeting /nix/store. Signed-off-by: Ophestra <cat@gensokyo.uk>
-rw-r--r--cmd/hakurei/print_test.go14
-rw-r--r--hst/hst.go1
-rw-r--r--hst/hst_test.go4
3 files changed, 0 insertions, 19 deletions
diff --git a/cmd/hakurei/print_test.go b/cmd/hakurei/print_test.go
index 8189cfc9..c38b7310 100644
--- a/cmd/hakurei/print_test.go
+++ b/cmd/hakurei/print_test.go
@@ -50,7 +50,6 @@ Filesystem
autoetc:/etc/
w+ephemeral(-rwxr-xr-x):/tmp/
w*/nix/store:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work:/var/lib/hakurei/base/org.nixos/ro-store
- */nix/store
/run/current-system@
/run/opengl-driver@
w-/var/lib/hakurei/u0/org.chromium.Chromium:/data/data/org.chromium.Chromium
@@ -131,7 +130,6 @@ Filesystem
autoetc:/etc/
w+ephemeral(-rwxr-xr-x):/tmp/
w*/nix/store:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/upper:/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work:/var/lib/hakurei/base/org.nixos/ro-store
- */nix/store
/run/current-system@
/run/opengl-driver@
w-/var/lib/hakurei/u0/org.chromium.Chromium:/data/data/org.chromium.Chromium
@@ -296,10 +294,6 @@ App
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
},
{
- "type": "bind",
- "src": "/nix/store"
- },
- {
"type": "link",
"dst": "/run/current-system",
"linkname": "/run/current-system",
@@ -450,10 +444,6 @@ App
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
},
{
- "type": "bind",
- "src": "/nix/store"
- },
- {
"type": "link",
"dst": "/run/current-system",
"linkname": "/run/current-system",
@@ -660,10 +650,6 @@ func TestPrintPs(t *testing.T) {
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
},
{
- "type": "bind",
- "src": "/nix/store"
- },
- {
"type": "link",
"dst": "/run/current-system",
"linkname": "/run/current-system",
diff --git a/hst/hst.go b/hst/hst.go
index 575869e6..208b395a 100644
--- a/hst/hst.go
+++ b/hst/hst.go
@@ -121,7 +121,6 @@ func Template() *Config {
Upper: fhs.AbsVarLib.Append("hakurei/nix/u0/org.chromium.Chromium/rw-store/upper"),
Work: fhs.AbsVarLib.Append("hakurei/nix/u0/org.chromium.Chromium/rw-store/work"),
}},
- {&FSBind{Source: check.MustAbs("/nix/store")}},
{&FSLink{Target: fhs.AbsRun.Append("current-system"), Linkname: "/run/current-system", Dereference: true}},
{&FSLink{Target: fhs.AbsRun.Append("opengl-driver"), Linkname: "/run/opengl-driver", Dereference: true}},
{&FSBind{Source: fhs.AbsVarLib.Append("hakurei/u0/org.chromium.Chromium"),
diff --git a/hst/hst_test.go b/hst/hst_test.go
index 301704bf..247df2c1 100644
--- a/hst/hst_test.go
+++ b/hst/hst_test.go
@@ -199,10 +199,6 @@ func TestTemplate(t *testing.T) {
"work": "/var/lib/hakurei/nix/u0/org.chromium.Chromium/rw-store/work"
},
{
- "type": "bind",
- "src": "/nix/store"
- },
- {
"type": "link",
"dst": "/run/current-system",
"linkname": "/run/current-system",