base: improve logind config

This commit is contained in:
Aly Raffauf 2024-08-02 19:02:10 -04:00
parent f6dc15a157
commit 9f58f2bb5e

View file

@ -60,11 +60,15 @@ self: {lib, ...}: {
};
};
logind.extraConfig = ''
# Don't shutdown when power button is short-pressed
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
'';
logind = {
powerKey = "suspend";
powerKeyLongPress = "poweroff";
extraConfig = ''
# Don't shutdown when power button is short-pressed
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
'';
};
openssh = {
enable = true;