I don’t want to use nixpkgs.config.allowUnfree = true;
because I want to keep track every unfree packages on my system, so i use
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "unfreelistitem" ];
instead.
However, cuda contain a lot of unfree packages, something like
[
"cuda-merged"
"cuda_cuobjdump"
"cuda_gdb"
"cuda_nvdisasm"
"cuda_nvcc"
"cuda_cccl"
"cuda_cudart"
#...
]
so when everytime I run nixos-rebuild switch
, it only prompt one of it in the error message, which is very time consuming for me to add them in the list.
How can I get all of it at once? Thanks!