Set cpu governor for desktop
This commit is contained in:
parent
0da5d0435d
commit
5aded39c69
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue