mirror of
https://github.com/NixOS/nix
synced 2025-06-24 22:11:15 +02:00
Provide a default value for NIX_PATH
This commit is contained in:
parent
1c3ccba0f5
commit
ec9dd9a5ae
3 changed files with 13 additions and 7 deletions
|
@ -5,11 +5,6 @@ if [ -n "$HOME" ] && [ -n "$USER" ]; then
|
|||
|
||||
NIX_LINK=$HOME/.nix-profile
|
||||
|
||||
|
||||
# Append ~/.nix-defexpr/channels to $NIX_PATH so that <nixpkgs>
|
||||
# paths work when the user has fetched the Nixpkgs channel.
|
||||
export NIX_PATH=${NIX_PATH:+$NIX_PATH:}$HOME/.nix-defexpr/channels
|
||||
|
||||
# Set up environment.
|
||||
# This part should be kept in sync with nixpkgs:nixos/modules/programs/environment.nix
|
||||
export NIX_PROFILES="@localstatedir@/nix/profiles/default $HOME/.nix-profile"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue