slab: set suspend key to hibernate
This commit is contained in:
parent
5c65d83249
commit
d8f37d4af3
@ -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"];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user