summaryrefslogtreecommitdiff
path: root/hosts/toaster/amd.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/toaster/amd.nix')
-rw-r--r--hosts/toaster/amd.nix16
1 files changed, 16 insertions, 0 deletions
diff --git a/hosts/toaster/amd.nix b/hosts/toaster/amd.nix
new file mode 100644
index 0000000..07aa493
--- /dev/null
+++ b/hosts/toaster/amd.nix
@@ -0,0 +1,16 @@
+{ pkgs, config, ... }: {
+ boot.initrd.kernelModules = [ "amdgpu" ];
+
+ hardware.opengl = {
+ driSupport = true;
+ driSupport32Bit = true;
+ extraPackages = with pkgs; [
+ rocm-opencl-icd
+ rocm-opencl-runtime
+ amdvlk
+ ];
+ extraPackages32 = with pkgs; [
+ driversi686Linux.amdvlk
+ ];
+ };
+}