From 8b1a2d63562488946913a7e26f021d36534ba16d Mon Sep 17 00:00:00 2001 From: serenity-F Date: Tue, 22 Oct 2024 17:03:47 +1000 Subject: [PATCH] tidied and added corectrl+goodies to hades/hardware --- core/hosts/hades/hardware/default.nix | 39 +++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/core/hosts/hades/hardware/default.nix b/core/hosts/hades/hardware/default.nix index f147f5f..3968d3d 100644 --- a/core/hosts/hades/hardware/default.nix +++ b/core/hosts/hades/hardware/default.nix @@ -1,4 +1,4 @@ -{ config, lib, pkgs, modulesPath, ... }: +{ lib, config, pkgs, modulesPath, ... }: { imports = [ @@ -128,13 +128,48 @@ vaapiVdpau libvdpau-va-gl ]; - }; + }; + + amdgpu = { + initrd.enable = true; + opencl.enable = true; + + amdvlk = { + enable = true; + #package = [ ]; + support32Bit.enable = true; + supportExperimental.enable = true; + #settings = { + #}; + }; + + }; + }; + + programs = { + ## For tweaking Radeon GPUs + corectrl = { + enable = true; + gpuOverclock = { + enable = true; + ## Allows changing clocks and volts + ppfeaturemask = "0xfffd7fff"; + }; + }; + + tuxclocker = { + enable = true; + enableAMD = true; + useUnfree = true; + }; + }; ## Some packages for managing the radeon GPU inside Hades environment.systemPackages = with pkgs; [ umr radeontop + nvtop-amd amdgpu_top radeontools radeon-profile