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; }
|
rec { from = 1714; to = from + 50; }
|
||||||
];
|
];
|
||||||
|
|
||||||
services.logind.extraConfig = ''
|
services.logind = {
|
||||||
HandlePowerKey=suspend
|
powerKey = "suspend";
|
||||||
HandlePowerKeyLongPress=poweroff
|
powerKeyLongPress = "poweroff";
|
||||||
HandleSuspendKey=suspend-then-hibernate
|
suspendKey = "suspend-then-hibernate";
|
||||||
HandleSuspendKeyLongPress=hibernate
|
suspendKeyLongPress = "hibernate";
|
||||||
HandleLidSwitch=lock
|
lidSwitch = "lock";
|
||||||
HandleLidSwitchDocked=ignore
|
lidSwitchDocked = "ignore";
|
||||||
HandleLidSwitchExternalPower=lock
|
lidSwitchExternalPower = "lock";
|
||||||
'';
|
};
|
||||||
|
|
||||||
system.stateVersion = "23.11";
|
system.stateVersion = "23.11";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue