summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Cullmann <cullmann@kde.org>2023-01-15 20:43:15 +0100
committerChristoph Cullmann <cullmann@kde.org>2023-01-15 20:43:15 +0100
commit55ccddb352a309a0ff61aa0de6ef494a85b38b71 (patch)
tree916da3f4fd68ddec6629e014af9bc42f79f33caa
parent73c8db5b7cadc211bfc84eebded1a2e848abc7af (diff)
more shared fs config
-rw-r--r--common.nix12
-rw-r--r--kuro/hardware-configuration.nix10
-rw-r--r--liku/hardware-configuration.nix10
-rw-r--r--neko/hardware-configuration.nix10
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";