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

nixos install script on non-nixos doesn't add necessary lines to .bashrc #2609

Open
chessai opened this issue Dec 31, 2018 · 2 comments
Open
Labels

Comments

@chessai
Copy link
Member

chessai commented Dec 31, 2018

I am using Ubuntu 16.04 and Ubuntu 18.04 (different boxes, same problem).

I am installing nix like so:

bash <(curl https://nixos.org/nix/install)
...stuff...

. /home/user/.nix-profile/etc/profile.d/nix.sh

The nix installer adds the following to .profile:

# set PATH so it includes user's private bin directories
if [ -e /home/noc/.nix-profile/etc/profile.d/nix.sh ]; then . /home/noc/.nix-profile/etc/profile.d/nix.sh; fi # added by Nix installer

but not to .bashrc. So when installing nix on a new non-nixos machine, i have to manually add that line to .bashrc. This comes up often when running commands remotely with ssh, and the new boxes complain about nix commands not existing.

@stale
Copy link

stale bot commented Feb 21, 2021

I marked this as stale due to inactivity. → More info

1 similar comment
@stale
Copy link

stale bot commented Aug 22, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the stale label Aug 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant