I know that the cuda-maintainers cache is now cache.nixos-cuda.org, and I’ve modified my configuration accordingly. There is literally no reference on my filesystem to cuda-mainters. Never-the-less, when I enter a flake with cuda stuff, it still tries to access cuda-maintainers, resulting in:
arning: unable to download 'https://cuda-maintainers.cachix.org/nix-cache-info': HTTP error 401
response body:
Binary cache cuda-maintainers doesn't exist or you're not authorized to access it. Check the name for typos and/or provide an auth token. Contact support on https://cachix.org if you're stuck.
Here is a flake with most bits removed. If I try nix develop it results in the above error.
{
inputs = {
nixpkgs = {
url = "github:nixos/nixpkgs/nixos-unstable";
};
flake-utils = {
url = "github:numtide/flake-utils";
};
};
outputs =
{ nixpkgs, flake-utils, ... }:
flake-utils.lib.eachDefaultSystem (
system:
let
pkgs = import nixpkgs {
inherit system;
config = {
allowUnfree = true;
cudaSupport = true;
cudaVersion = "12";
};
};
nvidiaPackage = pkgs.linuxPackages.nvidiaPackages.stable;
in
{
devShell = pkgs.mkShell {
name = "graphics";
packages = builtins.attrValues {
inherit (pkgs)
cudatoolkit
;
inherit (pkgs.linuxPackages) nvidia_x11;
inherit (pkgs.fmt) dev;
inherit (pkgs.cudaPackages) cuda_cudart cudnn;
inherit (pkgs.stdenv) cc;
};
shellHook = ''
export CUDA_PATH=${pkgs.cudatoolkit}
export LD_LIBRARY_PATH=${pkgs.linuxPackages.nvidia_x11}/lib:${pkgs.ncurses5}/lib
export EXTRA_LDFLAGS="-L/lib -L${pkgs.linuxPackages.nvidia_x11}/lib"
export EXTRA_CCFLAGS="-I/usr/include"
'';
postShellHook = "";
};
}
);
}
And this is my cachix.nix
{
nix.settings = {
substituters = [
"https://cache.nixos.org"
"https://cache.iog.io"
"https://cache.nixos.org/"
"https://cache.nixos-cuda.org/"
"https://nix-community.cachix.org"
];
trusted-public-keys = [
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
"hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ="
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
"cache.nixos-cuda.org:74DUi4Ye579gUqzH4ziL9IyiJBlDpMRn9MBN8oNan9M="
];
extra-substituters = [ "https://yazi.cachix.org" ];
extra-trusted-public-keys = [ "yazi.cachix.org-1:Dcdz63NZKfvUCbDGngQDAZq6kOroIrFoyO064uvLh8k=" ];
};
}