mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
* Create /nix/var/nix/gcroots/per-user.
svn path=/nixos/trunk/; revision=9189
This commit is contained in:
parent
f7d2ccdb87
commit
475ee4548d
|
@ -53,6 +53,14 @@ done
|
|||
export PATH=$HOME/bin:$PATH
|
||||
|
||||
|
||||
# Create the per-user garbage collector roots directory.
|
||||
NIX_USER_GCROOTS_DIR=/nix/var/nix/gcroots/per-user/$USER
|
||||
mkdir -m 0755 -p $NIX_USER_GCROOTS_DIR
|
||||
if test "$(stat --printf '%u' $NIX_USER_GCROOTS_DIR)" != "$(id -u)"; then
|
||||
echo "WARNING: bad ownership on $NIX_USER_GCROOTS_DIR" >&2
|
||||
fi
|
||||
|
||||
|
||||
# Set up a default Nix expression from which to install stuff.
|
||||
if ! test -L $HOME/.nix-defexpr; then
|
||||
echo "creating $HOME/.nix-defexpr" >&2
|
||||
|
|
|
@ -117,6 +117,7 @@ fi
|
|||
# Nix initialisation.
|
||||
mkdir -m 0755 -p /nix/var/nix/db
|
||||
mkdir -m 0755 -p /nix/var/nix/gcroots
|
||||
mkdir -m 1777 -p /nix/var/nix/gcroots/per-user
|
||||
mkdir -m 0755 -p /nix/var/nix/temproots
|
||||
mkdir -m 0755 -p /nix/var/nix/profiles
|
||||
mkdir -m 1777 -p /nix/var/nix/profiles/per-user
|
||||
|
|
Loading…
Reference in a new issue