Skip to content

Commit

Permalink
add withCUDA overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
MayNiklas committed Feb 6, 2024
1 parent 6b764b8 commit f70da42
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/nvidia/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@ let
config = { allowUnfree = true; cudaSupport = true; };
};

# packages that should be built with CUDA support on NVIDIA systems
cudaoverlay = (self: super: {
# access overlay by using pkgs.withCUDA.<package>
inherit withCUDA;
# packages that should be built with CUDA support on NVIDIA systems
inherit (withCUDA)
nvtop
;
Expand Down Expand Up @@ -49,7 +51,7 @@ in
opengl = {
enable = true;
driSupport = true;
driSupport32Bit = mkIf config.virtualisation.docker.enable true;
driSupport32Bit = true;
};

nvidia = {
Expand Down

0 comments on commit f70da42

Please sign in to comment.