aboutsummaryrefslogtreecommitdiff
path: root/hosts/herra/drivers.nix
blob: e731695b724f0b0e14fe044ec8c0e94691d2ed03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{pkgs, ...}: {
  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; [
    rocmPackages.clr.icd # OpenCL
  ];
  extraPackages32 = with pkgs; [
  ];
};

cpu.intel.updateMicrocode = true;

enableRedistributableFirmware = true;
};
#TODO: FIX
#boot.extraModulePackages = with boot.kernelPackages; [
#  v4l2loopback
#];
boot.kernelModules = [ "v4l2loopback" ];
boot.extraModprobeConfig = ''
  options v4l2loopback devices=1 video_nr=1 card_label="OBS Virtual Camera" exclusive_caps=1
'';
}