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

normal NixOS users won't have ~/.nix-channels #32

Open
das-g opened this issue Nov 24, 2017 · 1 comment
Open

normal NixOS users won't have ~/.nix-channels #32

das-g opened this issue Nov 24, 2017 · 1 comment

Comments

@das-g
Copy link
Member

das-g commented Nov 24, 2017

Steps to reproduce

  1. install and configure NixOS 17.09, including a non-root, non-system user, e.g. users.extraUsers.das-g.isNormalUser = true; (don't configure any nix channels for that user, yet)
  2. on that installation, as that normal user, go through Nix Pills, Chapter 3, without first performing the nix installation of Chapter 2. (After all, NixOS already comes with nix, doesn't it.)

Expected

What you see should match what is described in the chapter.

Observed

At section 3.9, you'll notice that you don't have any ~./nix-channels file in that normal user's home. (Just /root/.nix-channels in root's home.) If (like me), you're new to NixOS, you may wonder whether that's normal on NixOS or whether you did miss something during the NixOS installation/configuration.

@Ericson2314
Copy link
Member

Ericson2314 commented Apr 9, 2018

Try doing a nix-channel --add ..., and see if that creates the file. Normal uses by default have no channels, so I guess nobody bothered to initialized the empty file when nix-channel will do it for you?

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