From 8df3c6bf45b9616bb424872d1d9abc282e1339b0 Mon Sep 17 00:00:00 2001 From: Syed Daanish Date: Thu, 9 Jul 2026 10:52:27 +0100 Subject: [PATCH] Allow systemd hibernation --- hosts/common.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/hosts/common.nix b/hosts/common.nix index 3e06ddd..ca358ea 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -6,6 +6,11 @@ ../modules/secrets ]; + boot.resumeDevice = + if config.swapDevices != [] + then (builtins.head config.swapDevices).device + else null; + nixpkgs.config.allowUnfree = true; boot.loader.systemd-boot.enable = true;