mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
nixos-install: Create /root/.nix-defexpr
This was previously done by nixos-prepare-root.
This commit is contained in:
parent
b14d9e1568
commit
84f93dd07a
1 changed files with 2 additions and 0 deletions
|
@ -115,6 +115,8 @@ if [[ -z $noChannelCopy ]]; then
|
|||
mkdir -p $mountPoint/nix/var/nix/profiles/per-user/root
|
||||
nix-env --store "$mountPoint" "${extraBuildFlags[@]}" --extra-substituters "$sub" \
|
||||
-p $mountPoint/nix/var/nix/profiles/per-user/root/channels --set "$channelPath" --quiet
|
||||
install -m 0700 -d $mountPoint/root/.nix-defexpr
|
||||
ln -sfn /nix/var/nix/profiles/per-user/root/channels $mountPoint/root/.nix-defexpr/channels
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
Loading…
Reference in a new issue