Open BlueFalconHD opened 6 months ago
Re-open your shell again after running your commands. Let us know if it works.
@limoges It doesn't
After an install, the bare command should be darwin-rebuild
, not nix-darwin
. If that doesn't work, can you post the exact command you are trying to run and the output you get?
running into the same issue here. i can run the nix-darwin
command from nix, but no luck on where darwin-rebuild
should be defined even after reloading my shell
❯ nix run nix-darwin -- switch --flake ~/.config/nix-darwin
building the system configuration...
user defaults...
setting up user launchd services...
setting up /Applications/Nix Apps...
setting up pam...
applying patches...
setting up /etc...
system defaults...
setting up launchd services...
reloading nix-daemon...
waiting for nix-daemon
waiting for nix-daemon
configuring networking...
setting nvram variables...
edit: more context
there's also no ~/.nix-defexpr/darwin
only channels
and channels_root
and the ~/.nix-profile
is a dangling symlink (if that matters)
it looks like this is an issue with nix-darwin
and the fish shell in particular
this workaround fixed it for me: https://github.com/LnL7/nix-darwin/issues/122#issuecomment-1782971499
I installed nix (using). Then, I followed the steps to use nix-darwin:
Then I ran
nix run nix-darwin --experimental-features "flakes nix-command" -- switch --flake ~/nix-darwin-config/
, as instructed.Then, it says I should be able to use the command
nix-darwin
, but it doesn't work. I am using fish shell, my config is listed below:I tried fixing the issue myself, here is my Nix config:
I have no idea what I am doing, thanks for the help!