hosts/tablet: use logind options instead of extraConfig
This commit is contained in:
parent
b6f96bcbb9
commit
57e722a521
1 changed files with 9 additions and 9 deletions
|
@ -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";
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue