Created
November 7, 2023 00:46
-
-
Save reklis/fb300e1b6c3549b1b2a82b891a8cc1b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nvidia | |
hardware.nvidia.modesetting.enable = true; | |
services.xserver.videoDrivers = [ "nvidia" ]; | |
hardware.opengl.driSupport32Bit = true; | |
nixpkgs.config.cudaSupport = true; | |
virtualisation.docker.enableNvidia = true; | |
virtualisation.docker.extraOptions = "--add-runtime nvidia=/run/current-system/sw/bin/nvidia-container-runtime"; | |
boot.extraModulePackages = [ config.boot.kernelPackages.nvidia_x11 ]; | |
boot.kernelParams = [ "module_blacklist=i915" ]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment