From 57e722a5218da5c14f3ab20db9a62b356d21f03b Mon Sep 17 00:00:00 2001 From: Wroclaw Date: Mon, 10 Mar 2025 02:53:54 +0100 Subject: [PATCH] hosts/tablet: use logind options instead of extraConfig --- hosts/tablet.nix | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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"; };