nix-installer icon indicating copy to clipboard operation
nix-installer copied to clipboard

can't use flakes even if nix.conf is updated

Open deekshith991 opened this issue 1 year ago • 2 comments

deekshith991 avatar Jul 17 '24 11:07 deekshith991

Could you please provide some more info?

  • What installer version did you use?
  • What version of Nix are you running?
  • What happens when you try to use something that requires the flakes feature? (Screenshots or terminal text output would be helpful.)
  • What are the contents of /etc/nix/nix.conf and ~/.config/nix/nix.conf?
  • Does it start working if you restart the Nix daemon (systemctl restart nix-daemon on Linux, launchctl bootout system org.nixos.nix-daemon && launchctl bootstrap system org.nixos.nix-daemon on macOS, I think)?

cole-h avatar Jul 17 '24 16:07 cole-h

I was troubleshooting this with someone today, they were getting messages about setting experimental-features = nix-command flakes etc.

@cole-h's post was useful for me, because I looked at the ~/.config/nix/nix.conf and noticed that it set experimental-features, and that those overrode the ones in /ext/nix/nix.conf, so for me deleting ~/.config/nix/nix.conf did the trick.

a-h avatar Jul 24 '24 20:07 a-h

I'm going to close this now, feel free to reopen if you run into the issue again and/or can provide more details!

cole-h avatar Sep 23 '24 16:09 cole-h