hosts/tablet: use logind options instead of extraConfig

This commit is contained in:
Wroclaw 2025-03-10 02:53:54 +01:00
parent b6f96bcbb9
commit 57e722a521

View file

@ -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";
};