reorganize hardware

This commit is contained in:
Reid 2026-04-30 17:15:54 -07:00
parent 0d9381864c
commit 30baa4ce8b
Signed by: reidlab
GPG key ID: DAF5EAF6665839FD
8 changed files with 67 additions and 55 deletions

View file

@ -0,0 +1,22 @@
{ pkgs, config, lib, inputs, ... }:
with lib;
let
cfg = config.modules.hardware.graphics.amdgpu;
in {
options.modules.hardware.graphics.amdgpu = {
enable = mkEnableOption "Enable AMD graphics drivers, used in conjuction with nixos-hardware";
overclock = mkEnableOption "Enable overclocking on AMD graphics drivers";
};
config = mkIf cfg.enable {
hardware.amdgpu.opencl.enable = true;
hardware.amdgpu.overdrive.enable = cfg.overclock;
services.lact.enable = cfg.overclock;
environment.systemPackages = with pkgs; [ amdgpu_top ];
# radv > amdvlk
environment.variables.AMD_VULKAN_ICD = "RADV";
};
}