Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

{extra-,}experimental-features in flake nixConfig ignored #10727

Open
shlevy opened this issue May 16, 2024 · 2 comments
Open

{extra-,}experimental-features in flake nixConfig ignored #10727

shlevy opened this issue May 16, 2024 · 2 comments
Labels
bug flakes settings Settings, global flags, nix.conf

Comments

@shlevy
Copy link
Member

shlevy commented May 16, 2024

Describe the bug

In a flake with nixConfig.extra-experimental-features = “fetch-closure”, builtins.fetchClosure still is not available. Evaluating the flake with the command line flag works.

nix-env --version output
nix-env (Nix) 2.18.1

@shlevy shlevy added the bug label May 16, 2024
@roberth roberth added flakes settings Settings, global flags, nix.conf labels May 20, 2024
@fricklerhandwerk
Copy link
Contributor

fricklerhandwerk commented May 22, 2024

Triaged in Nix maintainers meeting:

  • @Ericson2314 this may be because configuration is evaluated to late in the process, but needs a repoducer
    • generally don't like the feature, it's a dirty hack and an endless source of bugs
  • @roberth: haven't touched the code, but we're probably allowing too much. would be good to define more clearly which settings can even be configured
  • @tomberek: will do a bit of probing...
    • confirmed on 2.22
    • the registration seems to be done once, and the evaluation cannot change the setting
    • while the setting change is being caught, it's too late to take effect
    • @Ericson2314 yes, nothing in Nix is designed to do that sort of thing
      • as long as we have global variables we won't be able to do anything about it

@nixos-discourse
Copy link

This issue has been mentioned on NixOS Discourse. There might be relevant details there:

https://discourse.nixos.org/t/2024-05-22-nix-team-meeting-minutes-147/45835/1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug flakes settings Settings, global flags, nix.conf
Projects
None yet
Development

No branches or pull requests

4 participants