config.cudaSupport: init option

This commit is contained in:
Someone Serge 2023-07-20 17:57:06 +03:00
parent a17baa5db4
commit 133993211b
No known key found for this signature in database
GPG key ID: 7B0E3B1390D61DA4
2 changed files with 7 additions and 1 deletions

View file

@ -13,7 +13,7 @@ compatible are available as well. For example, there can be a
To use one or more CUDA packages in an expression, give the expression a `cudaPackages` parameter, and in case CUDA is optional To use one or more CUDA packages in an expression, give the expression a `cudaPackages` parameter, and in case CUDA is optional
```nix ```nix
{ config { config
, cudaSupport ? config.cudaSupport or false , cudaSupport ? config.cudaSupport
, cudaPackages ? { } , cudaPackages ? { }
, ... , ...
}: }:

View file

@ -117,6 +117,12 @@ let
''; '';
}; };
cudaSupport = mkMassRebuild {
type = types.bool;
default = false;
feature = "build packages with CUDA support by default";
};
showDerivationWarnings = mkOption { showDerivationWarnings = mkOption {
type = types.listOf (types.enum [ "maintainerless" ]); type = types.listOf (types.enum [ "maintainerless" ]);
default = []; default = [];