From 55ccddb352a309a0ff61aa0de6ef494a85b38b71 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sun, 15 Jan 2023 20:43:15 +0100 Subject: more shared fs config --- common.nix | 12 ++++++++++++ kuro/hardware-configuration.nix | 10 ---------- liku/hardware-configuration.nix | 10 ---------- neko/hardware-configuration.nix | 10 ---------- 4 files changed, 12 insertions(+), 30 deletions(-) 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"; -- cgit v1.2.3