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.autoScrub.enable = true;
services.zfs.trim.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 # non persistent root
fileSystems."/" = { fileSystems."/" = {
device = "none"; device = "none";

View file

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

View file

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

View file

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