about summary refs log tree commit diff stats
path: root/sys/services
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2025-09-11 23:04:55 +0200
committerSilas Schöffel <sils@sils.li>2025-09-11 23:09:12 +0200
commitb4b0b69410dee1fffe51bcfe35898537037b156e (patch)
tree7dabe29668ea0e4ae099100b9984dc99d74d736f /sys/services
parentflake.lock: update (diff)
downloadnix-config-b4b0b69410dee1fffe51bcfe35898537037b156e.zip
logind: move options to new settings attrs
Diffstat (limited to 'sys/services')
-rw-r--r--sys/services/logind/default.nix12
1 files changed, 5 insertions, 7 deletions
diff --git a/sys/services/logind/default.nix b/sys/services/logind/default.nix
index a3dd040..b883bcb 100644
--- a/sys/services/logind/default.nix
+++ b/sys/services/logind/default.nix
@@ -1,10 +1,8 @@
 {...}: {
-  services.logind = {
-    lidSwitch = "suspend-then-hibernate";
-    extraConfig = ''
-      IdleAction=ignore
-      HandlePowerKey=hibernate
-      HandlePowerKeyLongPress=poweroff
-    '';
+  services.logind.settings.Login = {
+    HandleLidSwitch = "suspend-then-hibernate";
+    IdleAction = "ignore";
+    HandlePowerKey = "hibernate";
+    HandlePowerKeyLongPress = "poweroff";
   };
 }