summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--hosts/shinji/hardware.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/hosts/shinji/hardware.nix b/hosts/shinji/hardware.nix
index e79deb0..88990f8 100644
--- a/hosts/shinji/hardware.nix
+++ b/hosts/shinji/hardware.nix
@@ -44,6 +44,10 @@
hardware.enableRedistributableFirmware = true;
hardware.cpu.amd.updateMicrocode = true;
+ # hibernation
+ boot.resumeDevice = (builtins.head config.swapDevices).device;
+ powerManagement.enable = true;
+
# luks device
boot.initrd.luks.devices."root".device = "/dev/disk/by-uuid/ad489bfa-4280-44ea-8ad2-60347b516d60";
boot.initrd.luks.devices."swap".device = "/dev/disk/by-uuid/550e638d-eade-4d2f-aa39-c38774c91af3";