wip: power management
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user