mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
Fix reverting to a home-manager-less generation
This commit is contained in:
parent
4018b987bf
commit
c8f577bad3
1 changed files with 2 additions and 0 deletions
|
|
@ -77,7 +77,9 @@ writeText "login-inner" ''
|
||||||
if [ -e "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then
|
if [ -e "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then
|
||||||
[ "$#" -gt 0 ] || echo "Sourcing home-manager environment..."
|
[ "$#" -gt 0 ] || echo "Sourcing home-manager environment..."
|
||||||
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:}$NIX_PATH
|
export NIX_PATH=$HOME/.nix-defexpr/channels''${NIX_PATH:+:}$NIX_PATH
|
||||||
|
set +u
|
||||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||||
|
set -u
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Workaround for https://github.com/NixOS/nix/issues/1865
|
# Workaround for https://github.com/NixOS/nix/issues/1865
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue