diff options
| author | Grigory Shipunov | 2023-01-14 12:57:53 +0100 |
|---|---|---|
| committer | Grigory Shipunov | 2023-01-14 12:57:53 +0100 |
| commit | eabc64290a948aeca298dd3d6d75373e3e914cbd (patch) | |
| tree | 34596191b9386e7d4cc0c2b93c2404885706f0be /hosts/toaster/amd.nix | |
| parent | 9ff003a4c1303b4d5dec4239f6f5743dc54f3181 (diff) | |
update
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 + ]; + }; +} |
