From 8492cb23ca9331d6c0442fd61620f2e14095f6ad Mon Sep 17 00:00:00 2001 From: devhell Date: Tue, 20 Apr 2021 09:59:29 +0100 Subject: machines/gunnr: Switch to AMDGPU Just like with herja. --- machines/devhell/gunnr.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'machines/devhell') 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. -- cgit 1.4.1