update: flake

This commit is contained in:
DACHXY 2025-05-10 14:17:09 +08:00
parent 6170ff2c1e
commit 2442ccf556
8 changed files with 129 additions and 153 deletions

View file

@ -1,21 +0,0 @@
# Here only set the environment for cuda shell env
# For futher, see flake: https://github.com/DACHXY/python-cuda-flake
{ lib, ... }:
{
nix = {
settings = {
substituters = [
"https://cuda-maintainers.cachix.org"
"https://cache.nixos.org/"
];
trusted-public-keys = [
"cuda-maintainers.cachix.org-1:0dq3bujKpuEPMCX6U4WylrUDZ9JyUG0VpVZa7CNfq5E="
];
};
};
nixpkgs.config.allowUnfreePredicate =
pkg:
builtins.elem (lib.getName pkg) [
"cuda-merged"
];
}