feat(Zephyrus): Added nvidia relative config

This commit is contained in:
GaspardCulis 2024-09-20 17:12:30 +02:00
parent 159c155428
commit 3c4da2d439

View file

@ -36,4 +36,22 @@
"gaspard" = import ../../users/gaspard.nix; "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";
};
};
} }