-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
file 'home-manager' was not found in the Nix search path #487
Comments
Did you remember to run:
Because it seems that nix can't find a |
Thanks for the quick reply. I have already home-manager channel added:
|
@mehandes Does your $ echo $NIX_PATH
/home/rycee/.nix-defexpr/channels:nixpkgs=/home/rycee/devel/nixpkgs-18.09:nixos-config=/etc/nixos/configuration.nix I did notice that if you don't have a |
@rycee Yes, it does
|
Hmm, from what I can tell it is actually missing the entry I was looking for. I believe it would work if it was set to
/home/mc/.nix-defexpr/channels:nixpkgs=/home/mc/.nix-defexpr/channels/nixpkgs
Did you try a relog? Also are you using NixOS or a Nix installation on some other system?
…On December 7, 2018 6:32:10 PM GMT+01:00, Matt ***@***.***> wrote:
@rycee Yes, it does
```
$ echo $NIX_PATH
nixpkgs=/home/mc/.nix-defexpr/channels/nixpkgs
$ nix-shell '<home-manager>' -A install
error: file 'home-manager' was not found in the Nix search path (add it
using $NIX_PATH or -I)
```
--
You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub:
#487 (comment)
--
Sent from my Android device with K-9 Mail. Please excuse my brevity.
|
Yes, I relogged, rebooted and tried even on VPS. I am using Thanks for the suggestion - I tried
and it worked, but I don't know why and if I should change the NIX_PATH permanently. |
I had a similar issue when following the install instructions in the readme. However, logging out and back in added |
I faced that problem, too, relog, reboot didn't help. Executing the channel commands with elevated rights did help. I think the documentation is a bit imprecise here, having '$ command someOption', instead of '# command someOption' as examples, so it doesn't point out that you may need elevated rights. |
This issue has been mentioned on NixOS Discourse. There might be relevant details there: https://discourse.nixos.org/t/home-manager-command-wont-switch-twice-on-nixos/50344/1 |
Hi, I receive the above when trying to install home manager.
The text was updated successfully, but these errors were encountered: