From f13122fe7a957417f2fef28b435db1b98c22b7c1 Mon Sep 17 00:00:00 2001 From: caem Date: Thu, 6 Jul 2023 18:02:45 +0200 Subject: [PATCH] Disable hibernation and fix swap for dirae --- systems/hardware/dirae.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/systems/hardware/dirae.nix b/systems/hardware/dirae.nix index c5f6c84..241b90c 100644 --- a/systems/hardware/dirae.nix +++ b/systems/hardware/dirae.nix @@ -8,6 +8,7 @@ boot.initrd.availableKernelModules = [ "uhci_hcd" "ahci" "virtio_pci" "virtio_blk" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ "kvm-intel" ]; + boot.kernelParams = [ "nohibernate" ]; boot.extraModulePackages = [ ]; boot.zfs.devNodes = "/dev/disk/by-path"; @@ -32,7 +33,7 @@ }; swapDevices = [ - { devices = "/dev/disk/by-uuid/a2a0b9a3-52c9-4eb6-b03b-bcbbae0547a3"; } + { device = "/dev/disk/by-uuid/a2a0b9a3-52c9-4eb6-b03b-bcbbae0547a3"; } ]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking