This commit is contained in:
Greg Leyda 2022-07-09 11:27:58 -04:00
commit beaf5202ca
37 changed files with 1802 additions and 0 deletions

23
prime.nix Executable file
View file

@ -0,0 +1,23 @@
{ config, ... }:
{
hardware = {
nvidia = {
nvidiaPersistenced = true;
prime = {
sync.enable = true;
amdgpuBusId = "PCI:5:0:0";
nvidiaBusId = "PCI:1:0:0";
};
package = config.boot.kernelPackages.nvidiaPackages.stable;
modesetting.enable = true;
};
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
};
}