From d8f37d4af33dba7a229fb1d18e033cb9a612d0a1 Mon Sep 17 00:00:00 2001 From: NullBite Date: Mon, 20 May 2024 00:34:09 -0400 Subject: [PATCH] slab: set suspend key to hibernate --- hosts/slab/configuration.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hosts/slab/configuration.nix b/hosts/slab/configuration.nix index 09e4be6..02d2dd4 100644 --- a/hosts/slab/configuration.nix +++ b/hosts/slab/configuration.nix @@ -104,11 +104,16 @@ }; }; + # systemd power/suspend configuration systemd.targets = lib.genAttrs ["suspend" "hybrid-sleep" "suspend-then-hibernate"] (_: { enable = false; unitConfig.DefaultDependencies = "no"; }); - services.logind.lidSwitch = "lock"; + + services.logind = { + lidSwitch = "lock"; + suspendKey = "hibernate"; + }; services.xserver.videoDrivers = ["amdgpu"];