aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst/template_test.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-08-12 04:38:45 +0900
committerOphestra <cat@gensokyo.uk>2025-08-14 04:52:49 +0900
commit99ac96511bed17f48d908db3d00a1f48579ba011 (patch)
tree30d404efb7256c9f053f64192068637d6b846db4 /hst/template_test.go
parente99d7affb0c128fa82722f9b3d79c99b5e5918cd (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_test.go')
-rw-r--r--hst/template_test.go19
1 files changed, 11 insertions, 8 deletions
diff --git a/hst/template_test.go b/hst/template_test.go
index da119d4f..e3c36f58 100644
--- a/hst/template_test.go
+++ b/hst/template_test.go
@@ -98,31 +98,34 @@ func TestTemplate(t *testing.T) {
"device": true,
"filesystem": [
{
+ "type": "ephemeral",
"dst": "/tmp/",
- "src": "/proc/nonexistent",
- "write": true
+ "write": true,
+ "perm": 493
},
{
+ "type": "bind",
"src": "/nix/store"
},
{
+ "type": "bind",
"src": "/run/current-system"
},
{
+ "type": "bind",
"src": "/run/opengl-driver"
},
{
- "src": "/var/db/nix-channels"
- },
- {
+ "type": "bind",
"dst": "/data/data/org.chromium.Chromium",
"src": "/var/lib/hakurei/u0/org.chromium.Chromium",
- "write": true,
- "require": true
+ "write": true
},
{
+ "type": "bind",
"src": "/dev/dri",
- "dev": true
+ "dev": true,
+ "optional": true
}
],
"symlink": [