logind: power key suspends

This commit is contained in:
Motiejus Jakštys 2023-09-18 14:58:40 +03:00
parent ac0950f1f8
commit 9ebeef43e3

View File

@ -13,11 +13,24 @@
services = { services = {
pcscd.enable = true; pcscd.enable = true;
printing.enable = true;
# TODO post-23.11
#logind.powerKey = "suspend";
#logind.powerKeyLongPress = "poweroff";
logind.extraConfig = ''
HandlePowerKey=suspend
HandlePowerKeyLongPress=poweroff
'';
xserver = { xserver = {
enable = true; enable = true;
layout = "us,lt"; layout = "us,lt";
xkbOptions = "grp:alt_shift_toggle"; xkbOptions = "grp:alt_shift_toggle";
desktopManager.xfce.enable = true;
windowManager.awesome.enable = true;
displayManager = { displayManager = {
sddm.enable = true; sddm.enable = true;
defaultSession = "none+awesome"; defaultSession = "none+awesome";
@ -27,11 +40,6 @@
}; };
}; };
windowManager.awesome = {
enable = true;
};
desktopManager.xfce.enable = true;
}; };
pipewire = { pipewire = {
@ -41,7 +49,6 @@
pulse.enable = true; pulse.enable = true;
}; };
printing.enable = true;
}; };
programs = { programs = {