Skip to content

Commit

Permalink
fix(nix): Add CUDA package to allowed_unfree
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones2014 committed Apr 19, 2024
1 parent 4943b57 commit 2cfb77c
Showing 1 changed file with 7 additions and 11 deletions.
18 changes: 7 additions & 11 deletions nixos-modules/allowed-unfree.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ lib, ... }: {
nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (lib.getName pkg) [
let name = lib.getName pkg;
in builtins.elem name [
"obsidian"
"discord"
"spotify"
Expand All @@ -17,15 +18,10 @@
# however VS Code should NOT be installed on this system!
# Use VS Codium instead: https://github.com/VSCodium/vscodium
"vscode"

# CUDA support (e.g. for Ollama)
"cudatoolkit"
"cuda_cudart"
"cuda-merged"
"cuda_cuobjdump"
"cuda_gdb"
"cuda_nvcc"
"cuda_nvdisasm"
];
] ||
# CUDA support (e.g. for Ollama)
# CUDA has like a billion different packages for some reason
# so just allow all CUDA packages
(builtins.substring 0 4 name) == "cuda";
}

0 comments on commit 2cfb77c

Please sign in to comment.