Skip to content

Instantly share code, notes, and snippets.

@sellout
Created August 7, 2017 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sellout/0010114b0a93a31665b4a5eb79676dde to your computer and use it in GitHub Desktop.
Save sellout/0010114b0a93a31665b4a5eb79676dde to your computer and use it in GitHub Desktop.
> darwin-rebuild switch ~/.nix-defexpr/darwin
building the system configuration...
error: file ‘darwin’ was not found in the Nix search path (add it using $NIX_PATH or -I), at (string):1:1
error: Changed <darwin> but target does not exist, aborting activation
Add the darwin repo as a channel or set NIX_PATH:
$ sudo nix-channel --add https://github.com/LnL7/nix-darwin/archive/master.tar.gz darwin
$ sudo nix-channel --update
or set
nix.nixPath = [ "darwin=/Users/greg/.nix-defexpr/darwin" ];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment