diff --git a/hosts/tablet.nix b/hosts/tablet.nix index 949adb3..3ec9e20 100644 --- a/hosts/tablet.nix +++ b/hosts/tablet.nix @@ -42,15 +42,15 @@ rec { from = 1714; to = from + 50; } ]; - services.logind.extraConfig = '' - HandlePowerKey=suspend - HandlePowerKeyLongPress=poweroff - HandleSuspendKey=suspend-then-hibernate - HandleSuspendKeyLongPress=hibernate - HandleLidSwitch=lock - HandleLidSwitchDocked=ignore - HandleLidSwitchExternalPower=lock - ''; + services.logind = { + powerKey = "suspend"; + powerKeyLongPress = "poweroff"; + suspendKey = "suspend-then-hibernate"; + suspendKeyLongPress = "hibernate"; + lidSwitch = "lock"; + lidSwitchDocked = "ignore"; + lidSwitchExternalPower = "lock"; + }; system.stateVersion = "23.11"; };