2024-05-11 18:04:14 +00:00
|
|
|
{ lib, machine, ... }: {
|
2024-05-08 14:16:42 +00:00
|
|
|
config = {
|
|
|
|
nixpkgs = {
|
|
|
|
config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) (
|
|
|
|
let
|
|
|
|
names =
|
2024-05-11 18:04:14 +00:00
|
|
|
(lib.optional machine.config.xone "xow_dongle-firmware") ++
|
|
|
|
(lib.optionals machine.config.nvidia [
|
2024-05-08 14:16:42 +00:00
|
|
|
"cuda_cccl"
|
|
|
|
"cuda_cudart"
|
|
|
|
"cuda_cuobjdump"
|
|
|
|
"cuda_cupti"
|
|
|
|
"cuda_cuxxfilt"
|
|
|
|
"cuda_gdb"
|
|
|
|
"cuda-merged"
|
|
|
|
"cuda_nvcc"
|
|
|
|
"cuda_nvdisasm"
|
|
|
|
"cuda_nvml_dev"
|
|
|
|
"cuda_nvprune"
|
|
|
|
"cuda_nvrtc"
|
|
|
|
"cuda_nvtx"
|
|
|
|
"cuda_profiler_api"
|
|
|
|
"cuda_sanitizer_api"
|
|
|
|
"libcublas"
|
|
|
|
"libcufft"
|
|
|
|
"libcurand"
|
|
|
|
"libcusolver"
|
|
|
|
"libcusparse"
|
|
|
|
"libnpp"
|
|
|
|
"libnvjitlink"
|
|
|
|
"rar"
|
|
|
|
]);
|
|
|
|
in
|
|
|
|
names);
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|