mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Fix NIX_PATH missing channels on subsequent logins
This commit is contained in:
parent
8b0ddb9c91
commit
5d02a86a91
1 changed files with 2 additions and 0 deletions
2
script
2
script
|
|
@ -142,6 +142,8 @@ if [ ! -e \$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh ]; then
|
|||
$TGT_NIX/bin/nix run nixpkgs.coreutils -c cp -n $INST/etc/home.nix.default \$HOME/.config/nixpkgs/home.nix
|
||||
echo "Installing home-manager..."
|
||||
$TGT_NIX/bin/nix run nixpkgs.nix -c $TGT_NIX/bin/nix-shell '<home-manager>' -A install
|
||||
else
|
||||
export NIX_PATH=\$HOME/.nix-defexpr/channels\${NIX_PATH:+:}\$NIX_PATH
|
||||
fi
|
||||
|
||||
echo "Sourcing home-manager environment..."
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue