Commit 89ddc11d26e8

Vincent Demeester <vincent@sbr.pm>
2019-04-13 17:52:49
machine/hokkaido: update logind configuration
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 6426821
Changed files (1)
machine/hokkaido.nix
@@ -23,10 +23,12 @@ with import ../assets/machines.nix; {
     podman.enable = true;
   };
   services = {
+    logind = {
+      lidSwitch = "suspend";
+      lidSwitchExternalPower = "suspend";
+      lidSwitchDocked = "ignore";
+    };
     logind.extraConfig = ''
-      HandleLidSwitch=suspend
-      HandleLidSwitchExternalPower=suspend
-      HandleLidSwitchDocked=ignore
       HandlePowerKey=hibernate
     '';
     syncthing-edge.guiAddress = "${wireguard.ips.hokkaido}:8384";