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

non-existent dir inserted in PATH from /etc/profile #37912

Open
castilma opened this issue Mar 27, 2018 · 4 comments
Open

non-existent dir inserted in PATH from /etc/profile #37912

castilma opened this issue Mar 27, 2018 · 4 comments
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos

Comments

@castilma
Copy link

Issue description

On my system, /etc/profile contains this line:

export PATH="/etc/profiles/per-user/$USER/bin:$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin"

but /etc/profiles does not exist on my system. I'd guess it's the same with other people?

Steps to reproduce

Technical details

  • system: "x86_64-linux"
  • host os: Linux 4.14.29, NixOS, 18.03pre131587.b6ddb9913f2 (Impala)
  • multi-user?: yes
  • sandbox: no
  • version: nix-env (Nix) 2.0
  • channels(mcd): ""
  • channels(root): "nixos-18.03pre131587.b6ddb9913f2"
  • nixpkgs: /nix/var/nix/profiles/per-user/root/channels/nixos/nixpkgs
@cx405
Copy link

cx405 commented Jun 11, 2020

Solved! You need to add environment.homeBinInPath = true; to configuration.nix, et voila!

@stale
Copy link

stale bot commented Dec 8, 2020

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

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 8, 2020
@castilma
Copy link
Author

Upfront: I don't use nixos anymore.

Solved! You need to add environment.homeBinInPath = true; to configuration.nix, et voila!

That may fix it, but I think it should be fixed in the distribution and not individually by every user.

@stale stale bot removed the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Dec 15, 2020
@stale
Copy link

stale bot commented Jun 16, 2021

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

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 16, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos
Projects
None yet
Development

No branches or pull requests

3 participants