commit 3f30aa5e1d21406d956256cb54683fbfa8f353ff
parent e8f03630df2a1c8c2441cebff33789032f8d9031
Author: Katja (zaphyra) <git@ctu.cx>
Date: Wed, 4 Jun 2025 12:32:28 +0200
parent e8f03630df2a1c8c2441cebff33789032f8d9031
Author: Katja (zaphyra) <git@ctu.cx>
Date: Wed, 4 Jun 2025 12:32:28 +0200
hosts/polaris: switch to zfs
1 file changed, 17 insertions(+), 9 deletions(-)
diff --git a/hosts/polaris/default.nix b/hosts/polaris/default.nix @@ -5,7 +5,7 @@ domain = "home.infra.zaphyra.eu"; - sshPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHH7pnD5l+1jfUrJKp900AeH7WHIIwCZVhA7BGlwzHl4"; + sshPubKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIA2bluHGMcdKEremjLq3aUEeJlWHlGSjL8nuAhkeEl1f"; hardware = { cpuVendor = "intel"; @@ -34,7 +34,7 @@ { boot = { - kernelPackages = pkgs.linuxPackages_latest; + kernelModules = [ "wireguard" ]; # seems to make realtek ethernet faster? kernelParams = [ "pcie_aspm=off" ]; @@ -50,14 +50,22 @@ modules = { security.kernel = false; - filesystem.rootDisk = { - enable = true; - encrypt = true; - type = "btrfs"; - path = "/dev/disk/by-id/nvme-INTEL_SSDPEKNW010T8_PHNH9210020X1P0B"; - swap = { + filesystem = { + impermanence.system.enable = true; + impermanence.home.enable = true; + rootDisk = { enable = true; - size = "8G"; + encrypt = true; + type = "zfs"; + path = "/dev/disk/by-id/nvme-INTEL_SSDPEKNW010T8_PHNH9210020X1P0B"; + reservedSpace = "3G"; + parts = { + nix = true; + }; + swap = { + enable = true; + size = "8G"; + }; }; };