diff options
Diffstat (limited to 'modules/hardware/amd-gpu.nix')
| -rw-r--r-- | modules/hardware/amd-gpu.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/modules/hardware/amd-gpu.nix b/modules/hardware/amd-gpu.nix new file mode 100644 index 0000000..cfaa974 --- /dev/null +++ b/modules/hardware/amd-gpu.nix @@ -0,0 +1,31 @@ +{ + pkgs, + ... +}: + +{ + hardware.graphics = { + enable = true; + enable32Bit = true; + + # use amdvlk in conjunction with amdgpu, + # applications can choose which one to use. + extraPackages = with pkgs; [ amdvlk ]; + extraPackages32 = with pkgs; [ driversi686Linux.amdvlk ]; + }; + + services.xserver.videoDrivers = [ "amdgpu" ]; + + hardware.amdgpu = { + opencl.enable = true; + initrd.enable = true; + overdrive.enable = false; + legacySupport.enable = false; + }; + + services.lact.enable = true; + environment.systemPackages = with pkgs; [ + lact + clinfo + ]; +} |
