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"];