From 45d1cb8c894dc2e3da791e13ec5d567610df4563 Mon Sep 17 00:00:00 2001 From: sils Date: Sat, 1 Jul 2023 09:45:20 +0200 Subject: Feat(sys/services): Add logind configuration --- sys/services/logind/default.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 sys/services/logind/default.nix (limited to 'sys/services/logind/default.nix') 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 + ''; + }; +} -- cgit 1.4.1