mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Create nix-profile link manually
This commit is contained in:
parent
cfe16dff4e
commit
5a915530b0
1 changed files with 3 additions and 0 deletions
|
|
@ -21,6 +21,9 @@ 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
|
||||
|
||||
[ "$#" -gt 0 ] || echo "Sourcing Nix environment..."
|
||||
. ${nix}/etc/profile.d/nix.sh
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue