wip: power management
This commit is contained in:
@@ -16,9 +16,12 @@
|
||||
services.upower = {
|
||||
enable = true;
|
||||
};
|
||||
services.logind.extraConfig = {
|
||||
HandlePowerKey = "hibernate"; # Hibernate when the power button is pressed
|
||||
HandleLidSwitch = "hibernate"; # Hibernate when the lid is closed
|
||||
services.logind.settings.Login = {
|
||||
HandleLidSwitch = "hibernate";
|
||||
HandleLidSwitchExternalPower = "lock";
|
||||
HandleLidSwitchDocked = "ignore";
|
||||
};
|
||||
|
||||
# one of "ignore", "poweroff", "reboot", "halt", "kexec", "suspend", "hibernate", "hybrid-sleep", "suspend-then-hibernate", "lock"
|
||||
powerManagement.enable = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user