[NixOS] Use nvidia module for nixquick

This commit is contained in:
Ivan Malison 2024-09-27 14:23:32 -06:00
parent d62d538562
commit 342fc4f4c6

View File

@ -12,6 +12,7 @@
myModules.gitea-runner.enable = true;
myModules.vscode.enable = true;
myModules.kat.enable = true;
myModules.nvidia.enable = true;
networking.hostName = "nixquick";
@ -22,14 +23,6 @@
boot.extraModulePackages = [ ];
boot.loader.systemd-boot.enable = true;
# install nvidia drivers in addition to intel one
hardware.graphics.extraPackages = [ pkgs.linuxPackages.nvidia_x11.out ];
hardware.graphics.extraPackages32 = [ pkgs.linuxPackages.nvidia_x11.lib32 ];
hardware.graphics.enable32Bit = true;
services.xserver = {
videoDrivers = [ "nvidia" ];
};
hardware.nvidia.modesetting.enable = true;
# This also enables v4l2loopback