wip: power management

This commit is contained in:
2025-12-24 18:46:03 +00:00
parent 2261876326
commit 90bb720391

View File

@@ -16,9 +16,12 @@
services.upower = { services.upower = {
enable = true; enable = true;
}; };
services.logind.extraConfig = { services.logind.settings.Login = {
HandlePowerKey = "hibernate"; # Hibernate when the power button is pressed HandleLidSwitch = "hibernate";
HandleLidSwitch = "hibernate"; # Hibernate when the lid is closed HandleLidSwitchExternalPower = "lock";
HandleLidSwitchDocked = "ignore";
}; };
# one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "lock"
powerManagement.enable = true; powerManagement.enable = true;
} }