From 36d7398d227c3c130c4af40f4a25aedeffd96982 Mon Sep 17 00:00:00 2001 From: Sean Buckley Date: Wed, 8 Dec 2021 14:52:41 -0500 Subject: [PATCH] cube: simplify bind mounts --- hosts/x86_64-linux/cube/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/hosts/x86_64-linux/cube/default.nix b/hosts/x86_64-linux/cube/default.nix index 2dddf6b..6179b55 100644 --- a/hosts/x86_64-linux/cube/default.nix +++ b/hosts/x86_64-linux/cube/default.nix @@ -37,10 +37,9 @@ "/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; }; "/nix" = { device = "cube/locker/nix"; fsType = "zfs"; }; "/persist" = { device = "cube/locker/persist"; fsType = "zfs"; neededForBoot = true; }; - } - // builtins.listToAttrs (map - (name: { inherit name; value = { device = "/persist${name}"; noCheck = true; options = [ "bind" ]; }; }) - [ "/home" "/var/log" ]); + "/home" = { device = "/persist/home"; noCheck = true; options = [ "bind" ]; }; + "/var/log" = { device = "/persist/var/log"; noCheck = true; options = [ "bind" ]; }; + }; system.stateVersion = "21.05"; }