summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2023-06-21 22:41:02 +0200
committermakefu <github@syntax-fehler.de>2023-06-21 22:41:02 +0200
commit0c5b20465e92f474d2268d54e214ace4f5a19ea7 (patch)
tree1adec1324b29595169b816c86f58ed05554db884
parent95305ec65f39432a260cc9a7b95a85686978a180 (diff)
ma x13: pull out amdgpu
-rw-r--r--1systems/x/x13/amdgpu.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/1systems/x/x13/amdgpu.nix b/1systems/x/x13/amdgpu.nix
new file mode 100644
index 000000000..a6e4286bd
--- /dev/null
+++ b/1systems/x/x13/amdgpu.nix
@@ -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" ];
+}