I have installed Nix on a Mac OSX (v 10.9.2) but anytime I try to run any command I get this message:
error: getting information about '/Users/myuser/.nix-defexpr': No such file or directory
This seems related with the absence of channels properly defined, but I don't know how to create them. Other nix installations on Gnu/Linux automatically do that and running .nix-env --update nixpkgs
gives me ./nix-channel: unable to check 'https://nixos.org/channels/nixpkgs-unstable
, but I can browse that address from Firefox/Brave.
BTW, login out a re-login doesn't make any nix commands available from command prompt, so I need to run them from ~/.nix-profile/bin/
.
Any clue about how to solve it?
nix-channel --add 'https://nixos.org/channels/nixpkgs-unstable' nixpkgs
?