-
-
Notifications
You must be signed in to change notification settings - Fork 507
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
New nix-darwin install - "error: file 'darwin' was not found in the Nix search path (add it using $NIX_PATH or -I)" #1360
Comments
Hmm - I think my issue might be this one: However, I think the README is a little ambigious (as is the README). I'm still a bit hazy as to why I should be using |
Same exact issue here. Set config to ~/.config/nix/flake.nix When trying to run |
Issue resolved by declaring I think we will need to update the installation instructions or make some better Quickstart docs as this seems to be something changed form a vast majority of existing external guides. |
I've made a PR to clarify this in the README, please let me know if the wording is clear https://github.com/LnL7/nix-darwin/pull/1368/files |
Added a comment / recommendation that we make known the --flake option as many users will want to use the .config/nix location anyways. |
I'm trying to setup Nix on a new macOS machine (running macOS Sequoia 15.3.1), and I'm hitting some PATH errors trying to get nix-darwin to install. (I'm a Nix newbie - previously I was using the starter templates from here, but I figured I wanted to try some of it myself).
Firstly, I installed Nix using the Determinate Nix installer:
Then, I created a Nix configuration directly at
~/.config/nix
, and created a flake.nix using the nix-darwin template:Then I edited the hostname using the snippet from the nix-darwin README:
Finally I ran the nix-darwin install command from the README - this is where it seems to error out around the path:
I did try spawning a new shell, but I get the same error:
UPDATE:
I'm using the default
zsh
in macOS (although I'd like to switch to fish shortly - or possibly try out nushell...lol).This is my current $PATH:
The text was updated successfully, but these errors were encountered: