Configure lid-switch on host instead of user level

This commit is contained in:
SebastianStork 2025-03-10 21:58:52 +01:00
parent 86d31cc3c6
commit 479949068a
2 changed files with 5 additions and 2 deletions

View file

@ -26,11 +26,15 @@
services = {
fwupd.enable = true;
fprintd.enable = true;
logind.lidSwitch = "ignore";
upower = {
enable = true;
criticalPowerAction = "Hibernate";
};
logind = {
powerKey = "suspend-then-hibernate";
lidSwitch = "suspend-then-hibernate";
};
};
systemd.sleep.extraConfig = ''