From 8dfe49f5df59985d4f178792470900711171ec84 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 23 Sep 2026 19:25:16 +0200 Subject: ... --- hosts/skadhi/fs.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'hosts/skadhi/fs.nix') diff --git a/hosts/skadhi/fs.nix b/hosts/skadhi/fs.nix index a2a01392..055769f3 100644 --- a/hosts/skadhi/fs.nix +++ b/hosts/skadhi/fs.nix @@ -52,6 +52,7 @@ content = { type = "btrfs"; extraArgs = let + dirs = map (p: "/persistent/${p}") ["/etc"]; subvols = ["/persistent"] ++ map (p: "/persistent/${p}") ["/nix" "/var/log"]; restricted = map (p: "/persistent/${p}") ["/root"]; in [ @@ -60,7 +61,7 @@ "--rootdir" (toString (pkgs.runCommand "rootdir" { } '' mkdir $out - install -d ${lib.concatMapStringsSep " " (p: "$out/${p}") subvols} + install -d ${lib.concatMapStringsSep " " (p: "$out/${p}") (dirs ++ subvols)} install -m 0700 -d ${lib.concatMapStringsSep " " (p: "$out/${p}") restricted} '')) ] ++ lib.concatMap (p: ["--subvol" p]) (subvols ++ restricted); -- cgit v1.2.3