more shared fs config

This commit is contained in:
Christoph Cullmann 2023-01-15 20:43:15 +01:00
parent 73c8db5b7c
commit 55ccddb352
4 changed files with 12 additions and 30 deletions

View file

@ -36,6 +36,18 @@ in
services.zfs.autoScrub.enable = true;
services.zfs.trim.enable = true;
# persistent nix
fileSystems."/nix" = {
device = "zroot/nix";
fsType = "zfs";
};
# persistent homes
fileSystems."/home" = {
device = "zroot/home";
fsType = "zfs";
};
# non persistent root
fileSystems."/" = {
device = "none";

View file

@ -13,16 +13,6 @@
boot.kernelModules = [ "kvm-amd" ];
boot.extraModulePackages = [ ];
fileSystems."/nix" =
{ device = "zroot/root/nix";
fsType = "zfs";
};
fileSystems."/home" =
{ device = "zroot/root/home";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/5326-AA38";
fsType = "vfat";

View file

@ -13,16 +13,6 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/nix" =
{ device = "zroot/root/nix";
fsType = "zfs";
};
fileSystems."/home" =
{ device = "zroot/root/home";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/D95E-E4E3";
fsType = "vfat";

View file

@ -13,16 +13,6 @@
boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ];
fileSystems."/nix" =
{ device = "zroot/nix";
fsType = "zfs";
};
fileSystems."/home" =
{ device = "zroot/home";
fsType = "zfs";
};
fileSystems."/boot" =
{ device = "/dev/disk/by-uuid/9CF2-12FF";
fsType = "vfat";