mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-26 02:38:30 +02:00
chore: power management
This commit is contained in:
@@ -157,4 +157,5 @@ in
|
|||||||
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
# networking.interfaces.wlan0.useDHCP = lib.mkDefault true;
|
||||||
|
|
||||||
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
nixpkgs.hostPlatform = lib.mkDefault "aarch64-linux";
|
||||||
|
powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,12 +8,4 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
boot.loader.timeout = lib.mkDefault 8; # wait for x seconds to select the boot entry
|
boot.loader.timeout = lib.mkDefault 8; # wait for x seconds to select the boot entry
|
||||||
|
|
||||||
# for power management
|
|
||||||
services = {
|
|
||||||
power-profiles-daemon = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
upower.enable = true;
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user