system/services/logind: suspend on lid close
This commit is contained in:
parent
ec0ef6c248
commit
6e0076c7ef
2 changed files with 6 additions and 0 deletions
|
@ -23,6 +23,7 @@ let
|
|||
./services/power.nix
|
||||
./services/brightness.nix
|
||||
./services/keyd.nix
|
||||
./services/logind.nix
|
||||
];
|
||||
in {
|
||||
inherit desktop laptop;
|
||||
|
|
5
system/services/logind.nix
Normal file
5
system/services/logind.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
services.logind = {
|
||||
lidSwitch = "suspend";
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue