add cudasupport

This commit is contained in:
Noa Aarts 2025-12-05 16:25:01 +01:00
parent 7b506195cc
commit 69710a8e5c
Signed by: noa
GPG key ID: 1850932741EFF672

View file

@ -22,6 +22,10 @@
pkgs = import inputs.nixpkgs {
inherit system;
overlays = [ inputs.rust-overlay.overlays.default ];
config = {
allowUnfree = true;
cudaSupport = true;
};
};
lib = pkgs.lib;
@ -99,6 +103,9 @@
(lib.python_package ppkgs)
]))
];
shellHook = ''
export CUDA_PATH=${pkgs.cudatoolkit}
'';
};
lib = {
# To use in other builds with the "withPackages" call