You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Nixpkgs config (e.g. allowUnfree) when using nix profile #101101
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
When using the new flakes interface, e.g. nix profile, the nixpkgs configuration in ~/.config/nixpkgs/config.nix is ignored due to hermetic evaluation, so, e.g. it is not clear to me how to install unfree packages now. When I try to install a new package, the error is not helpful as it suggests using this file.
I think, this error needs to be updated to detect (?) that the evaluation is hermetic and recommend some other solution which will work.
Reacted by Aaron Janse, Alex Smith, chpio, Tim Sears, Herman Fries, Guillaume Desforges, Xavier Groleau, Vojtech Kral, Joel Höner, KlarkC and 13 more
0.kind: bugSomething is broken2.status: stalehttps://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md
Activity
samuelgrf commentedon Oct 21, 2020
You can work around this by running
NIXPKGS_ALLOW_UNFREE=1 nix profile --impure, but this shouldn't be a long term solution.Nix issue about this: NixOS/nix#3949 . There are plans for fixing this mentioned here: NixOS/nix#3843 (comment)
doronbehar commentedon Oct 23, 2020
See also: #101367 .
stale commentedon Jun 6, 2021
I marked this as stale due to inactivity. → More info
doronbehar commentedon Jun 10, 2021
Still an issue.
mausch commentedon Jun 13, 2023
This flag doesn't seem to exist?
Nix 2.15.1
iFreilicht commentedon Jun 19, 2023
@mausch
--impureis an argument ofinstall, notprofile. Try it like this:Lord-Valen commentedon Feb 18, 2025
It seemingly does consider the configuration file when using
--impure, so any added environment variables should be unnecessary.