From 588bea133c436af31c0c32168cb33eaab77644e7 Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Sun, 30 Nov 2025 12:42:41 +0100 Subject: [PATCH] feat: Set up disk layout for ws-think --- hosts/ws-think/hardware-configuration.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/hosts/ws-think/hardware-configuration.nix b/hosts/ws-think/hardware-configuration.nix index 0634e83..57ecb86 100644 --- a/hosts/ws-think/hardware-configuration.nix +++ b/hosts/ws-think/hardware-configuration.nix @@ -7,11 +7,6 @@ # Set hostid (required for ZFS) networking.hostId = "deadbeef"; - modules.disko = { - enable = true; - profile = "ws-think"; - }; - # Hardware configuration hardware.enableRedistributableFirmware = true; boot.initrd.availableKernelModules = [ @@ -55,4 +50,12 @@ ]; }; }; + + # Swap setup + swapDevices = [ + { + device = "/dev/disk/by-uuid/9f6f2a47-e53a-45a0-8cb2-8c1082f54ccb"; + discardPolicy = "both"; + } + ]; }