diff options
| author | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-11 13:26:44 +0530 | 
|---|---|---|
| committer | Raghuram Subramani <raghus2247@gmail.com> | 2024-03-11 13:26:44 +0530 | 
| commit | 5b26703c862f0e64eb6460af95eef5e442d2591b (patch) | |
| tree | 3702f013977bb64f2071512f505aff324880f685 /modules/amdgpu.nix | |
| parent | 05f1d4fd5ebd7fc0dd9778f878807f2ec3b7234c (diff) | |
update
Diffstat (limited to 'modules/amdgpu.nix')
| -rw-r--r-- | modules/amdgpu.nix | 26 | 
1 files changed, 26 insertions, 0 deletions
| diff --git a/modules/amdgpu.nix b/modules/amdgpu.nix new file mode 100644 index 0000000..898926b --- /dev/null +++ b/modules/amdgpu.nix @@ -0,0 +1,26 @@ +{ pkgs, config, ... }: + +{ +  hardware.opengl = { +    enable = true; +    driSupport = true; +    driSupport32Bit = true; +  }; + +  hardware.opengl.extraPackages = with pkgs; [ +    rocmPackages.clr.icd +    amdvlk +  ]; + +  hardware.opengl.extraPackages32 = with pkgs; [ +    driversi686Linux.amdvlk +  ]; + +  services.xserver.videoDrivers = [ "amdgpu" ]; + +  systemd.tmpfiles.rules = [ +    "L+    /opt/rocm/hip   -    -    -     -    ${pkgs.rocmPackages.clr}" +  ]; + +  # environment.systemPackages = [ pkgs.cudatoolkit ]; +} | 
