Enable upower

This commit is contained in:
Natsu Kagami 2022-11-08 12:31:58 +01:00
parent c90e130948
commit 3213131559
Signed by: nki
GPG key ID: 7306B3D3C3AD6E51

View file

@ -24,6 +24,18 @@
hardware.asahi.peripheralFirmwareDirectory = ./firmware;
hardware.asahi.use4KPages = true;
# Power Management
services.upower = {
enable = true;
criticalPowerAction = "PowerOff";
ignoreLid = true;
usePercentageForPolicy = true;
percentageCritical = 3;
percentageLow = 10;
};
services.logind.lidSwitch = "ignore";
networking.hostName = "kagami-air-m1"; # Define your hostname.
# networking.hostName = "nixos"; # Define your hostname.