Set cpu governor for desktop

This commit is contained in:
Nathan McCarty 2023-01-15 00:18:27 -05:00
parent 0da5d0435d
commit 5aded39c69
Signed by: thatonelutenist
GPG Key ID: D70DA3DD4D1E9F96
1 changed files with 7 additions and 0 deletions

View File

@ -26,6 +26,13 @@ with lib; {
let unstable = inputs.nixpkgs-unstable.legacyPackages.${pkgs.system};
in unstable.linuxKernel.packages.linux_lqx;
})
(mkIf config.nathan.config.isDesktop {
# Setup frequency scaling
powerManagement = {
enable = true;
cpuFreqGovernor = "schedutil";
};
})
(mkIf (config.nathan.config.nix.autoUpdate && pkgs.stdenv.isLinux) {
# Auto update daily at 2 am
system.autoUpgrade = {