diff options
Diffstat (limited to 'sys/services/logind/default.nix')
-rw-r--r-- | sys/services/logind/default.nix | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sys/services/logind/default.nix b/sys/services/logind/default.nix new file mode 100644 index 0000000..a3dd040 --- /dev/null +++ b/sys/services/logind/default.nix @@ -0,0 +1,10 @@ +{...}: { + services.logind = { + lidSwitch = "suspend-then-hibernate"; + extraConfig = '' + IdleAction=ignore + HandlePowerKey=hibernate + HandlePowerKeyLongPress=poweroff + ''; + }; +} |