From 36312cb056babb7661eac50905a37b84ba941f33 Mon Sep 17 00:00:00 2001 From: Christoph Cullmann Date: Sat, 3 Jun 2023 18:24:28 +0200 Subject: [PATCH] perload amdgpu and powersaving --- kuro/hardware-configuration.nix | 3 ++- mini/hardware-configuration.nix | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/kuro/hardware-configuration.nix b/kuro/hardware-configuration.nix index 95a5865..f4e5fb7 100644 --- a/kuro/hardware-configuration.nix +++ b/kuro/hardware-configuration.nix @@ -9,7 +9,7 @@ ]; boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; @@ -21,5 +21,6 @@ swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; } diff --git a/mini/hardware-configuration.nix b/mini/hardware-configuration.nix index b051373..fd5c88e 100644 --- a/mini/hardware-configuration.nix +++ b/mini/hardware-configuration.nix @@ -9,7 +9,7 @@ ]; boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; + boot.initrd.kernelModules = [ "amdgpu" ]; boot.kernelModules = [ "kvm-amd" ]; boot.extraModulePackages = [ ]; @@ -21,5 +21,6 @@ swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + powerManagement.cpuFreqGovernor = lib.mkDefault "powersave"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; }