diff options
| author | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
|---|---|---|
| committer | Grisha Shipunov | 2024-12-31 13:52:57 +0000 |
| commit | 50066a4d208b83e63d5ebb4bc64e740e78deae59 (patch) | |
| tree | b09004fb2121e2ffb4d46bb45ff65b024749d7e2 /hosts/toaster/amd.nix | |
| parent | 677abb734403d4f412dbbdc83f372cc606d9d519 (diff) | |
revert toaster
Diffstat (limited to 'hosts/toaster/amd.nix')
| -rw-r--r-- | hosts/toaster/amd.nix | 16 |
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 + ]; + }; +} |
