diff options
author | devhell <devhell@mailfresser.de> | 2021-04-20 09:59:29 +0100 |
---|---|---|
committer | devhell <devhell@mailfresser.de> | 2021-04-20 09:59:29 +0100 |
commit | 8492cb23ca9331d6c0442fd61620f2e14095f6ad (patch) | |
tree | 8c141d247cea30c61e6583d0b551b1558605a116 /machines/devhell/gunnr.nix | |
parent | 7b6396793f8f356d5f2fb6d22b5cd1ff8e8d35ac (diff) |
machines/gunnr: Switch to AMDGPU
Just like with herja.
Diffstat (limited to 'machines/devhell/gunnr.nix')
-rw-r--r-- | machines/devhell/gunnr.nix | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/machines/devhell/gunnr.nix b/machines/devhell/gunnr.nix index b274cba6..83e664e9 100644 --- a/machines/devhell/gunnr.nix +++ b/machines/devhell/gunnr.nix @@ -21,7 +21,7 @@ initrd = { availableKernelModules = [ "xhci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" ]; - kernelModules = [ "fuse" ]; + kernelModules = [ "fuse" "amdgpu" ]; }; kernelParams = [ "pcie_aspm=off" ]; @@ -34,11 +34,13 @@ cpu.amd.updateMicrocode = true; opengl = { enable = true; + driSupport = true; extraPackages = with pkgs; [ libvdpau-va-gl vaapiVdpau - amdvlk + amdvlk rocm-opencl-icd + rocm-opencl-runtime ]; }; }; @@ -103,7 +105,7 @@ services.xserver = { enable = true; layout = "dvorak"; - videoDrivers = [ "modesetting" ]; + videoDrivers = [ "amdgpu" ]; # XXX: Factor out and make DRY, because a lot of the stuff here is # duplicated in the other machine configurations. |