diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-02-03 21:27:56 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-02-03 21:27:56 -0800 |
commit | 990134fdcefe5a520b09ac6dfcaf97066fde6685 (patch) | |
tree | 6bda301a63218b7b0c7dd8b0eb6051e657e3533f /nix/modules/cuda.nix | |
parent | 21a09d9eea2be5c7a326a6f177521bb1cda25fb9 (diff) |
update nix directory structure to be more flexible and general
Diffstat (limited to 'nix/modules/cuda.nix')
-rw-r--r-- | nix/modules/cuda.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nix/modules/cuda.nix b/nix/modules/cuda.nix index dd5846b..d5d9b7c 100644 --- a/nix/modules/cuda.nix +++ b/nix/modules/cuda.nix @@ -1,9 +1,9 @@ { config, lib, pkgs, ... }: { - environment.systemPackages = with pkgs; [ + environment.systemPackages = (if config.monorepo.profiles.cuda.enable then with pkgs; [ cudatoolkit cudaPackages.cudnn cudaPackages.libcublas linuxPackages.nvidia_x11 - ]; + ] else []); } |