mirror of
https://github.com/nix-community/nix-on-droid.git
synced 2025-11-08 19:46:07 +01:00
session-init: consistently use the config for resolving home directory
It is not helpful to switch between `$HOME` and the config option for resolving the path of the home directory.
This commit is contained in:
parent
bb8470da1d
commit
7e00a63733
1 changed files with 3 additions and 3 deletions
|
|
@ -25,7 +25,7 @@ let
|
|||
[ -n "$__NOD_SESS_INIT_SOURCED" ] && return
|
||||
export __NOD_SESS_INIT_SOURCED=1
|
||||
|
||||
. $HOME/.nix-profile/etc/profile.d/nix.sh
|
||||
. "${config.user.home}/.nix-profile/etc/profile.d/nix.sh"
|
||||
|
||||
# workaround for nix 2.4, see https://github.com/NixOS/nixpkgs/issues/149791
|
||||
${addToNixPath "${config.user.home}/.nix-defexpr/channels"}
|
||||
|
|
@ -33,8 +33,8 @@ let
|
|||
${addToNixPath "nixpkgs=${config.user.home}/.nix-defexpr/channels/nixpkgs/"}
|
||||
|
||||
${optionalString (config.home-manager.config != null) ''
|
||||
if [ -e "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then
|
||||
. "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
if [ -e "${config.user.home}/.nix-profile/etc/profile.d/hm-session-vars.sh" ]; then
|
||||
. "${config.user.home}/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
fi
|
||||
''}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue