From b5aaa752bbbd353fbb3681474bdeac24dc5196d8 Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Tue, 5 May 2026 09:55:00 -0400 Subject: shinji: improve hibernation --- hosts/shinji/hardware.nix | 4 ++++ 1 file changed, 4 insertions(+) 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"; -- cgit v1.2.3-freya