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

Please remove or rename nix.conf, then can't use nix command without it #1228

Open
spikespaz opened this issue Dec 17, 2024 · 0 comments · May be fixed by #1229
Open

Please remove or rename nix.conf, then can't use nix command without it #1228

spikespaz opened this issue Dec 17, 2024 · 0 comments · May be fixed by #1229

Comments

@spikespaz
Copy link

spikespaz commented Dec 17, 2024

In flakes, step two:

https://github.com/LnL7/nix-darwin?tab=readme-ov-file#step-2-installing-nix-darwin

The following files have unrecognized content and would be overwritten:

  /etc/nix/nix.conf

Please check there is nothing critical in these files, rename them by adding .before-nix-darwin to the end, and then try again.

$ sudo mv /etc/nix/nix.conf /etc/nix/nix.conf.before-nix-darwin

$ nix run nix-darwin -- switch --flake ~/Work/flakey-darwin
error: experimental Nix feature 'nix-command' is disabled; add '--extra-experimental-features nix-command' to enable it

Clarify the command should be:

nix run --extra-experimental-features nix-command --extra-experimental-features flakes nix-darwin -- switch --flake ~/Work/flakey-darwin
spikespaz added a commit to spikespaz-contrib/nix-darwin that referenced this issue Dec 17, 2024
spikespaz added a commit to spikespaz-contrib/nix-darwin that referenced this issue Dec 18, 2024
zozonteq added a commit to zozonteq/nix-config that referenced this issue Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant