Expand the scope of the allowUnfree
flag to all the inputs
#1090
Labels
enhancement
New feature or request
allowUnfree
flag to all the inputs
#1090
Right now, it appears that setting
allowUnfree = true
only affects thenixpkgs
input; a closer look at the generated.devenv.flake.nix
file reveals the following code:So far, it appears that the only way to install "unfree" packages from external flakes is to pass them as
overlays
to the mainnixpkgs
input, which may be affected byallowUnfree = true
. A workaround I discovered is to prefix alldevenv
commands withNIXPKGS_ALLOW_UNFREE=1
or to add it directly to thedirenv
configuration file.envrc
, as shown below:To avoid this workaround, I am wondering if it makes sense to pass the
NIXPKGS_ALLOW_UNFREE=1
environment variable to allnix
commands invoked bydevenv
whenallowUnfree
is set totrue
. I'd be willing to submit a PR if the suggested change sounds like a viable solution for the mentioned scenario.The text was updated successfully, but these errors were encountered: