mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Use nix-env to set nix-profile link
This commit is contained in:
parent
b52091eff6
commit
8ad0e40c2b
1 changed files with 2 additions and 2 deletions
|
|
@ -21,8 +21,8 @@ writeText "login-inner" ''
|
|||
export GC_NPROCS=1 # to prevent gc warnings of nix, see https://github.com/NixOS/nix/issues/3237
|
||||
|
||||
${lib.optionalString config.build.initialBuild ''
|
||||
# link needed to force nix-env -i to install in the user profile
|
||||
${coreutils}/bin/ln --symbolic /nix/var/nix/profiles/per-user/$USER/profile $HOME/.nix-profile
|
||||
echo "Set default user profile..."
|
||||
${nix}/bin/nix-env --switch-profile /nix/var/nix/profiles/per-user/$USER/profile
|
||||
|
||||
[ "$#" -gt 0 ] || echo "Sourcing Nix environment..."
|
||||
. ${nix}/etc/profile.d/nix.sh
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue