diff --git a/hosts/desktop/hardware-configuration.nix b/hosts/desktop/hardware-configuration.nix index a68e205..a052abc 100644 --- a/hosts/desktop/hardware-configuration.nix +++ b/hosts/desktop/hardware-configuration.nix @@ -119,4 +119,5 @@ hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; + powerManagement.powertop.enable = true; } diff --git a/hosts/laptop/hardware-configuration.nix b/hosts/laptop/hardware-configuration.nix index 4e78ee1..89ee11f 100644 --- a/hosts/laptop/hardware-configuration.nix +++ b/hosts/laptop/hardware-configuration.nix @@ -123,4 +123,8 @@ hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; # high-resolution display hardware.video.hidpi.enable = lib.mkDefault true; + powerManagement = { + cpuFreqGovernor = lib.mkDefault "powersave"; + powertop.enable = true; + }; } diff --git a/hosts/nas/hardware-configuration.nix b/hosts/nas/hardware-configuration.nix index 51ad249..099c59f 100644 --- a/hosts/nas/hardware-configuration.nix +++ b/hosts/nas/hardware-configuration.nix @@ -33,7 +33,6 @@ keyFile = "/root/NASKeyfile"; }; }; - boot.kernelModules = [ "kvm-intel" ]; boot.extraModulePackages = [ ]; boot.tmpOnTmpfs = true; @@ -140,6 +139,14 @@ # # nameservers = [ "9.9.9.9" "2620:fe::fe" ]; }; - powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + powerManagement = { + cpuFreqGovernor = lib.mkDefault "powersave"; + powertop.enable = true; + powerUpCommands = '' + ${pkgs.hdparm}/sbin/hdparm -B 127 -S 120 /dev/disk/by-uuid/57e6446d-faca-4b67-9063-e8d9afb80088 + ${pkgs.hdparm}/sbin/hdparm -B 127 -S 120 /dev/disk/by-uuid/b9edc489-ac37-4b28-981d-442722df7ae2 + ''; + }; + }