slab: set suspend key to hibernate

This commit is contained in:
NullBite 2024-05-20 00:34:09 -04:00
parent 5c65d83249
commit d8f37d4af3
Signed by: nullbite
GPG Key ID: 6C4D545385D4925A

View File

@ -104,11 +104,16 @@
}; };
}; };
# systemd power/suspend configuration
systemd.targets = lib.genAttrs ["suspend" "hybrid-sleep" "suspend-then-hibernate"] (_: { systemd.targets = lib.genAttrs ["suspend" "hybrid-sleep" "suspend-then-hibernate"] (_: {
enable = false; enable = false;
unitConfig.DefaultDependencies = "no"; unitConfig.DefaultDependencies = "no";
}); });
services.logind.lidSwitch = "lock";
services.logind = {
lidSwitch = "lock";
suspendKey = "hibernate";
};
services.xserver.videoDrivers = ["amdgpu"]; services.xserver.videoDrivers = ["amdgpu"];