diff --git a/system/hardware-configuration.nix b/system/hardware-configuration.nix index fa864e7..893051f 100644 --- a/system/hardware-configuration.nix +++ b/system/hardware-configuration.nix @@ -8,10 +8,16 @@ [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" ]; - boot.initrd.kernelModules = [ ]; - boot.kernelModules = [ "kvm-amd" ]; - boot.extraModulePackages = [ ]; + boot.initrd.availableKernelModules = [ "nvme" "xhci_pci" "usbhid" "usb_storage" "sd_mod" "kvm-amd" "amdgpu" ]; + boot.initrd.kernelModules = [ "amdgpu" ]; + boot.kernelModules = [ "kvm-amd" "amdgpu" ]; + boot.extraModulePackages = with config.boot.kernelPackages; [ zenpower amdgpu-pro ]; + hardware.opengl.extraPackages = [ pkgs.amdvlk ]; + hardware.opengl.extraPackages32 = [ pkgs.driversi686Linux.amdvlk ]; + + systemd.tmpfiles.rules = [ + "L+ /opt/rocm/hip - - - - ${pkgs.rocmPackages.clr}" + ]; services.btrfs.autoScrub = { enable = true; diff --git a/system/hardware/kernel.nix b/system/hardware/kernel.nix index 7d7965a..d5e12cf 100644 --- a/system/hardware/kernel.nix +++ b/system/hardware/kernel.nix @@ -3,7 +3,4 @@ { boot.kernelPackages = pkgs.linuxPackages_zen; boot.consoleLogLevel = 0; - boot.extraModulePackages = with config.boot.kernelPackages; [ - zenpower - ]; } diff --git a/system/hardware/opengl.nix b/system/hardware/opengl.nix index 2d48cba..7e49f80 100644 --- a/system/hardware/opengl.nix +++ b/system/hardware/opengl.nix @@ -1,6 +1,9 @@ -{ ... }: +{ pkgs, ... }: { # OpenGL hardware.opengl.enable = true; + hardware.opengl.extraPackages = with pkgs; [ + rocmPackages.clr.icd + ]; }