mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-12-21 19:24:15 +00:00
simplify bind mounts
This commit is contained in:
parent
4f5ca30b2d
commit
ce0c2f52c9
3 changed files with 7 additions and 12 deletions
|
@ -36,10 +36,8 @@
|
||||||
"/nix" = { device = "zroot/locker/nix"; fsType = "zfs"; };
|
"/nix" = { device = "zroot/locker/nix"; fsType = "zfs"; };
|
||||||
"/home" = { device = "zroot/locker/home"; fsType = "zfs"; };
|
"/home" = { device = "zroot/locker/home"; fsType = "zfs"; };
|
||||||
"/boot" = { device = "/dev/disk/by-partlabel/EFI\\x20system\\x20partition"; fsType = "vfat"; };
|
"/boot" = { device = "/dev/disk/by-partlabel/EFI\\x20system\\x20partition"; fsType = "vfat"; };
|
||||||
}
|
"/var/log" = { device = "/nix/persist/var/log"; noCheck = true; options = [ "bind" ]; };
|
||||||
// builtins.listToAttrs (map
|
};
|
||||||
(name: { inherit name; value = { device = "/nix/persist${name}"; noCheck = true; options = [ "bind" ]; }; })
|
|
||||||
[ "/var/log" ]);
|
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
}
|
}
|
||||||
|
|
|
@ -36,10 +36,8 @@
|
||||||
"/nix" = { device = "lenny/locker/nix"; fsType = "zfs"; };
|
"/nix" = { device = "lenny/locker/nix"; fsType = "zfs"; };
|
||||||
"/home" = { device = "lenny/locker/home"; fsType = "zfs"; };
|
"/home" = { device = "lenny/locker/home"; fsType = "zfs"; };
|
||||||
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; };
|
||||||
}
|
"/var/log" = { device = "/nix/persist/var/log"; noCheck = true; options = [ "bind" ]; };
|
||||||
// builtins.listToAttrs (map
|
};
|
||||||
(name: { inherit name; value = { device = "/nix/persist${name}"; noCheck = true; options = [ "bind" ]; }; })
|
|
||||||
[ "/var/log" ]);
|
|
||||||
|
|
||||||
system.stateVersion = "21.11";
|
system.stateVersion = "21.11";
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,10 +31,9 @@
|
||||||
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
|
"/" = { device = "tmpfs"; fsType = "tmpfs"; options = [ "mode=755" ]; };
|
||||||
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; options = [ "discard" "noatime" ]; };
|
"/boot" = { device = "/dev/disk/by-partlabel/_esp"; fsType = "vfat"; options = [ "discard" "noatime" ]; };
|
||||||
"/nix" = { device = "/dev/disk/by-partlabel/_nix"; fsType = "ext4"; options = [ "discard" "noatime" ]; };
|
"/nix" = { device = "/dev/disk/by-partlabel/_nix"; fsType = "ext4"; options = [ "discard" "noatime" ]; };
|
||||||
}
|
"/home" = { device = "/nix/persist/home"; noCheck = true; options = [ "bind" ]; };
|
||||||
// builtins.listToAttrs (map
|
"/var/log" = { device = "/nix/persist/var/log"; noCheck = true; options = [ "bind" ]; };
|
||||||
(name: { inherit name; value = { device = "/nix/persist${name}"; noCheck = true; options = [ "bind" ]; }; })
|
};
|
||||||
[ "/home" "/var/log" ]);
|
|
||||||
|
|
||||||
system.stateVersion = "21.05";
|
system.stateVersion = "21.05";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue