feat(Zephyrus): Added nvidia relative config
This commit is contained in:
parent
159c155428
commit
3c4da2d439
1 changed files with 18 additions and 0 deletions
|
@ -36,4 +36,22 @@
|
|||
"gaspard" = import ../../users/gaspard.nix;
|
||||
};
|
||||
};
|
||||
|
||||
# NVIDIA
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) ["nvidia-x11" "nvidia-settings"];
|
||||
|
||||
hardware.opengl.enable = true;
|
||||
|
||||
services.xserver.videoDrivers = ["nvidia"];
|
||||
|
||||
hardware.nvidia = {
|
||||
modesetting.enable = true;
|
||||
|
||||
open = false; # Bruuh
|
||||
|
||||
prime = {
|
||||
amdgpuBusId = "PCI:7:0:0";
|
||||
nvidiaBusId = "PCI:1:0:0";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue