ma x13: pull out amdgpu

This commit is contained in:
makefu 2023-06-21 22:41:02 +02:00
parent 95305ec65f
commit 0c5b20465e

13
1systems/x/x13/amdgpu.nix Normal file
View file

@ -0,0 +1,13 @@
{
services.xserver.videoDrivers = [ "amdgpu" ];
boot.initrd.kernelModules = [ "amdgpu" ];
hardware.opengl.driSupport = true;
hardware.opengl.extraPackages = [ pkgs.amdvlk pkgs.rocm-opencl-icd pkgs.rocm-opencl-runtime ];
# For 32 bit applications
hardware.opengl.driSupport32Bit = true;
hardware.opengl.extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ];
# is required for amd graphics support ( xorg wont boot otherwise )
users.groups.video = {};
users.groups.render = {};
users.users.makefu.extraGroups = [ "video" "render" ];
}