hardware/form: hibernate laptops when power critical

This commit is contained in:
Infinidoge 2023-11-14 09:08:37 -05:00
parent a0b4955a06
commit 20828afda9
Signed by: Infinidoge
SSH key fingerprint: SHA256:oAMyvotlNFraMmZmr+p6AxnNfW/GioTs1pOn3V4tQ7A

View file

@ -38,6 +38,11 @@ in
logind.lidSwitch = mkDefault "ignore";
tlp.enable = mkDefault true;
upower = {
enable = true;
criticalPowerAction = "Hibernate";
};
};
powerManagement = {