mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
* Subscribe the root user to the NixOS channel by default.
svn path=/nixos/trunk/; revision=33883
This commit is contained in:
parent
d96f330fcf
commit
f1a99bd914
1 changed files with 5 additions and 0 deletions
|
@ -85,6 +85,11 @@ if ! test -L $HOME/.nix-profile; then
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Subscribe the root user to the NixOS channel by default.
|
||||||
|
if [ "$USER" = root -a ! -e $HOME/.nix-channels ]; then
|
||||||
|
echo "http://nixos.org/releases/nixos/channels/nixos-unstable nixos" > $HOME/.nix-channels
|
||||||
|
fi
|
||||||
|
|
||||||
# Create the per-user garbage collector roots directory.
|
# Create the per-user garbage collector roots directory.
|
||||||
NIX_USER_GCROOTS_DIR=/nix/var/nix/gcroots/per-user/$USER
|
NIX_USER_GCROOTS_DIR=/nix/var/nix/gcroots/per-user/$USER
|
||||||
mkdir -m 0755 -p $NIX_USER_GCROOTS_DIR
|
mkdir -m 0755 -p $NIX_USER_GCROOTS_DIR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue