diff options
author | Linnnus <[email protected]> | 2023-09-09 08:49:57 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2023-09-09 08:49:57 +0200 |
commit | 35bc38ad9c581a2b4e2e122f3701cca047e17a4c (patch) | |
tree | a7dea5a43f3c85e277659652c6e174a628fd036a | |
parent | ddc71791a4e3fe39e22a146b96863301d1b1d77c (diff) |
Use builtin logind options instead of extraConfig
-rw-r--r-- | hosts/ahmed/configuration.nix | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/hosts/ahmed/configuration.nix b/hosts/ahmed/configuration.nix index b31e441..4f53fd1 100644 --- a/hosts/ahmed/configuration.nix +++ b/hosts/ahmed/configuration.nix @@ -35,15 +35,15 @@ # Disable sleep on lid close. # FIXME: Screen does not appear to turn off when closed. - services.logind.extraConfig = + services.logind = let lidSwitchAction = "ignore"; in - '' - HandleLidSwitch=${lidSwitchAction} - HandleLidSwitchDocked=${lidSwitchAction} - HandleLidSwitchExternalPower=${lidSwitchAction} - ''; + { + lidSwitchExternalPower = lidSwitchAction; + lidSwitchDocked = lidSwitchAction; + lidSwitch = lidSwitchAction; + }; # Configure WiFi at computer's location. # FIXME: Don't store in plain text. |