However, I added to /etc/nixos/configuration.nixnix.settings.allow-import-from-derivation = true; and performed a sudo nixos-rebuild switch --flake /etc/nixos. The setting then appeared in my /etc/nix/nix.conf file.
However, running nix flake show still exhibited the same behavior, ignoring the global setting as well as the local flake.nix setting (using a command line option succeeds).
I was just curious whether there was a bug, or whether there was any documentation on this behavior?
error: cannot build ā/nix/store/ā¦-haskell-project-plan-to-nix-pkgs.drv^outā during evaluation because the option āallow-import-from-derivationā is disabled
I donāt have a .config/nix/nix.conf I am using flakes and a stand-alone home-manager
Iām pretty sure Iāll run into the issue, as I have disabled IFD explicitly. And if you run into the problem, you likely did as well. Iām just trying to figure out where.
IFD is disabled by default, as far as I can understand. Commenting out the explicit line I temporarily added in /etc/nixos/configuration.nix and rebuilding results in the entry vanishing from /etc/nix/nix.conf.
I suspect nix flake show ignores it regardless of whether it is set it in a local flake.nix or globally, which is not ideal, but fine as long as that is understood