summary refs log blame commit diff stats
path: root/sys/services/logind/default.nix
blob: a3dd0409fe6d9db031d8c12292645b32c52fc616 (plain) (tree)
1
2
3
4
5
6
7
8
9
10








                                         
{...}: {
  services.logind = {
    lidSwitch = "suspend-then-hibernate";
    extraConfig = ''
      IdleAction=ignore
      HandlePowerKey=hibernate
      HandlePowerKeyLongPress=poweroff
    '';
  };
}