From 990134fdcefe5a520b09ac6dfcaf97066fde6685 Mon Sep 17 00:00:00 2001 From: Preston Pan Date: Mon, 3 Feb 2025 21:27:56 -0800 Subject: update nix directory structure to be more flexible and general --- nix/modules/cuda.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'nix/modules/cuda.nix') 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 []); } -- cgit