summaryrefslogtreecommitdiff
path: root/hosts/ahmed
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/ahmed')
-rw-r--r--hosts/ahmed/configuration.nix12
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.