diff --git a/common.nix b/common.nix index 0cd559c..998dd4b 100644 --- a/common.nix +++ b/common.nix @@ -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"; diff --git a/kuro/hardware-configuration.nix b/kuro/hardware-configuration.nix index 7618d97..3eb66db 100644 --- a/kuro/hardware-configuration.nix +++ b/kuro/hardware-configuration.nix @@ -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"; diff --git a/liku/hardware-configuration.nix b/liku/hardware-configuration.nix index b50f1a6..6e4bccd 100644 --- a/liku/hardware-configuration.nix +++ b/liku/hardware-configuration.nix @@ -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"; diff --git a/neko/hardware-configuration.nix b/neko/hardware-configuration.nix index b90f66f..4665392 100644 --- a/neko/hardware-configuration.nix +++ b/neko/hardware-configuration.nix @@ -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";