about summary refs log tree commit diff
path: root/machines/devhell
diff options
context:
space:
mode:
authordevhell <devhell@mailfresser.de>2021-04-17 17:25:40 +0100
committerdevhell <devhell@mailfresser.de>2021-04-17 17:25:40 +0100
commitfe264c5b9ce94dacf1652ca5038e613ea7d9a250 (patch)
tree339faf26108fdc27966819231ae9280d1c884741 /machines/devhell
parentc2bd98f45fc13d8ff2227e00dde0088c5b54e459 (diff)
machines/herja: Force use of amdgpu
Every boot the kernel will silently dump some a trace referencing an
issue with AMDGPU. Some sleuthing suggests that the module needs to be
loaded much earlier. Funnily NixOS actually has a wiki specifically on
AMDGPU, so these settings have been taken from there.
Diffstat (limited to 'machines/devhell')
-rw-r--r--machines/devhell/herja.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/machines/devhell/herja.nix b/machines/devhell/herja.nix
index b29a2fbc..457440af 100644
--- a/machines/devhell/herja.nix
+++ b/machines/devhell/herja.nix
@@ -16,7 +16,7 @@
 
     initrd = {
       availableKernelModules = [ "nvme" "ehci_pci" "xhci_pci" "usb_storage" "sd_mod" "rtsx_pci_sdmmc" ];
-      kernelModules = [ "fuse" ];
+      kernelModules = [ "fuse" "amdgpu" ];
     };
 
     kernelModules = [ "kvm-amd" "acpi_call" ];
@@ -33,11 +33,13 @@
     };
     opengl = {
       enable = true;
+      driSupport = true;
       extraPackages = with pkgs; [
         libvdpau-va-gl
         vaapiVdpau
         amdvlk
         rocm-opencl-icd
+        rocm-opencl-runtime
       ];
     };
   };
@@ -128,7 +130,7 @@
   services.xserver = {
     enable = true;
     layout = "gb";
-    videoDrivers = [ "modesetting" ];
+    videoDrivers = [ "amdgpu" ];
 
     libinput = {
       enable = true;