From efa5a516a26ace33cd8e3d75abfca137afa0a52f Mon Sep 17 00:00:00 2001 From: Ellie <6687206+wizzeh@users.noreply.github.com> Date: Sat, 21 Mar 2026 23:41:26 -0700 Subject: [PATCH] power management --- hosts/homeserver/configuration.nix | 4 ++++ hosts/homeserver/hardware-configuration.nix | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/hosts/homeserver/configuration.nix b/hosts/homeserver/configuration.nix index 3e084ee..10f2312 100644 --- a/hosts/homeserver/configuration.nix +++ b/hosts/homeserver/configuration.nix @@ -25,8 +25,12 @@ package = config.boot.kernelPackages.nvidiaPackages.stable; modesetting.enable = true; open = false; + powerManagement.enable = true; }; + powerManagement.enable = true; + powerManagement.cpuFreqGovernor = "schedutil"; + services.resolved.enable = true; services.openssh = { diff --git a/hosts/homeserver/hardware-configuration.nix b/hosts/homeserver/hardware-configuration.nix index a1db409..d06c5ef 100644 --- a/hosts/homeserver/hardware-configuration.nix +++ b/hosts/homeserver/hardware-configuration.nix @@ -19,6 +19,10 @@ boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; + boot.kernelParams = [ + "amd_pstate=active" + "pcie_aspm=default" + ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;