system/services/logind: suspend on lid close

This commit is contained in:
Anthony Rodriguez 2024-10-06 15:57:49 +02:00
parent ec0ef6c248
commit 6e0076c7ef
Signed by: nezia
GPG key ID: EE3BE97C040A86CE
2 changed files with 6 additions and 0 deletions

View file

@ -23,6 +23,7 @@ let
./services/power.nix
./services/brightness.nix
./services/keyd.nix
./services/logind.nix
];
in {
inherit desktop laptop;

View file

@ -0,0 +1,5 @@
{
services.logind = {
lidSwitch = "suspend";
};
}