mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
cube: simplify bind mounts
This commit is contained in:
parent
b016868f68
commit
36d7398d22
1 changed files with 3 additions and 4 deletions
|
@ -37,10 +37,9 @@
|
||||||
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
||||||
"/nix" = { device = "cube/locker/nix"; fsType = "zfs"; };
|
"/nix" = { device = "cube/locker/nix"; fsType = "zfs"; };
|
||||||
"/persist" = { device = "cube/locker/persist"; fsType = "zfs"; neededForBoot = true; };
|
"/persist" = { device = "cube/locker/persist"; fsType = "zfs"; neededForBoot = true; };
|
||||||
}
|
"/home" = { device = "/persist/home"; noCheck = true; options = [ "bind" ]; };
|
||||||
// builtins.listToAttrs (map
|
"/var/log" = { device = "/persist/var/log"; noCheck = true; options = [ "bind" ]; };
|
||||||
(name: { inherit name; value = { device = "/persist${name}"; noCheck = true; options = [ "bind" ]; }; })
|
};
|
||||||
[ "/home" "/var/log" ]);
|
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue