Open eclairevoyant opened 1 month ago
This is precisely the same error I have got. I wonder why nix.conf
is disrespected although strace
shows it has been read.
I know now:
$ NIX_CONFIG='extra-experimental-features = flakes' nix show-config --experimental-features nix-command | grep exp
experimental-features = nix-command
$ NIX_CONFIG='extra-experimental-features = flakes' nix show-config | grep exp
experimental-features = flakes nix-command
The command line option --experimental-features
takes the highest precedence and overrides any other configurations.
The command below fails with an error indicating experimental features are disabled:
``` warning: unknown experimental feature 'configurable-impure-env' warning: unknown experimental feature 'fetch-tree' warning: unknown setting 'reject-flake-config' warning: unknown experimental feature 'configurable-impure-env' warning: unknown experimental feature 'fetch-tree' warning: unknown setting 'reject-flake-config' error: …nix-prefetch -f /path/to/nixpkgs
This forces me to add
--option extra-experimental-features flakes
to every invocation, which is silly