Skip to content
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

nix-channel list gives no output #54

Open
CThuleHansen opened this issue Jul 13, 2018 · 6 comments
Open

nix-channel list gives no output #54

CThuleHansen opened this issue Jul 13, 2018 · 6 comments

Comments

@CThuleHansen
Copy link

CThuleHansen commented Jul 13, 2018

Hi.

I am on macOS running with nix 2.0.
My nix-channel --list gives not output.
What can be the cause of this? Does it just use the unstable without outputting?

After manually adding the unstable pkgs, the output is correct.

@Gabriella439
Copy link
Owner

@CThuleHansen: This might be because you have a multi-user Nix installation. Try the following command to see if it works:

$ sudo -i nix-channel --list

This is because the Nix daemon uses the root account's channel since it is designed to run for all users. That's why it ignores your personal channel and there might not even be a personal channel installed by default as you discovered.

@CThuleHansen
Copy link
Author

I tried this, with the same result. But I have just added the unstable pkgs, so not a big issue. Perhaps worth a mention?

@Gabriella439
Copy link
Owner

@CThuleHansen: What is the output of:

$ echo $NIX_PATH

I'm fine mentioning this in the tutorial, but I first want to make sure that we've diagnosed the issue correctly

@CThuleHansen
Copy link
Author

/nix/var/nix/profiles/per-user/root/channels
Otherwise I can remove nix and retry it all

@Gabriella439
Copy link
Owner

@CThuleHansen: You might want to check out this issue: NixOS/nix#2008

@CThuleHansen
Copy link
Author

CThuleHansen commented Aug 9, 2018

Ahh interesting. It seems like it has been fixed in an upcoming release. So maybe worth a note until then?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants