diff options
Diffstat (limited to 'hosts/herra')
| -rw-r--r-- | hosts/herra/drivers.nix | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/hosts/herra/drivers.nix b/hosts/herra/drivers.nix index 596adf7..53971a7 100644 --- a/hosts/herra/drivers.nix +++ b/hosts/herra/drivers.nix @@ -1,4 +1,30 @@ {...}: { services.xserver.videoDrivers = ["amdgpu"]; # AMD GPU drivers boot.kernel.sysctl."kernel.sched_rt_runtime_us" = -1; # Realtime audio + + hardware = { + graphics = { + enable = true; + enable32Bit = true; # CRITICAL for Steam/Proton + extraPackages = with pkgs; [ + amdvlk + rocmPackages.clr.icd # OpenCL + ]; + extraPackages32 = with pkgs; [ + driversi686Linux.amdvlk + ]; +}; + +cpu.intel.updateMicrocode = true; + +enableRedistributableFirmware = true; + +boot.extraModulePackages = with config.boot.kernelPackages; [ + v4l2loopback +]; +boot.kernelModules = [ "v4l2loopback" ]; +boot.extraModprobeConfig = '' + options v4l2loopback devices=1 video_nr=1 card_label="OBS Virtual Camera" exclusive_caps=1 +''; + }; } |
