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 = '' logind = {
powerKey = "suspend";
powerKeyLongPress = "poweroff";
extraConfig = ''
# Don't shutdown when power button is short-pressed # Don't shutdown when power button is short-pressed
HandlePowerKey=suspend HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff HandlePowerKeyLongPress=poweroff
''; '';
};
openssh = { openssh = {
enable = true; enable = true;