From 35bc38ad9c581a2b4e2e122f3701cca047e17a4c Mon Sep 17 00:00:00 2001 From: Linnnus Date: Sat, 9 Sep 2023 08:49:57 +0200 Subject: Use builtin logind options instead of extraConfig --- hosts/ahmed/configuration.nix | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'hosts/ahmed/configuration.nix') 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. -- cgit v1.2.3