diff options
Diffstat (limited to 'hosts/hardware-configuration-desktop.nix')
| -rw-r--r-- | hosts/hardware-configuration-desktop.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hosts/hardware-configuration-desktop.nix b/hosts/hardware-configuration-desktop.nix index 2d93fb2..7c6ddb7 100644 --- a/hosts/hardware-configuration-desktop.nix +++ b/hosts/hardware-configuration-desktop.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 = [ ]; @@ -36,4 +36,10 @@ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; + + hardware.opengl = { enable = true; }; + services.xserver.videoDrivers = [ "amdgpu" ]; + # environment.variables = { + # AMD_VULKAN_ICD = "RADV"; # Force Mesa RADV over AMDVLK for better perf + # }; } |
