Add in Nix daemon default source
This (hopefully?) fixes woes with non-interactive shells under Gentoo.
This commit is contained in:
parent
ac9470148e
commit
6c9d93a2c8
1 changed files with 10 additions and 0 deletions
|
@ -62,4 +62,14 @@ in {
|
||||||
|
|
||||||
# We'd like to have the iTerm2 shell integration utilities in ~/.iterm2.
|
# We'd like to have the iTerm2 shell integration utilities in ~/.iterm2.
|
||||||
home.file.".iterm2".source = "${iterm2_shell_integration}/utilities";
|
home.file.".iterm2".source = "${iterm2_shell_integration}/utilities";
|
||||||
|
|
||||||
|
# We'd also like to have Nix sourced by default within .zshenv, as
|
||||||
|
# non-interactive shells don't always source ~/.zprofile or similar.
|
||||||
|
programs.zsh.envExtra = ''
|
||||||
|
# Nix
|
||||||
|
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
|
||||||
|
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
|
||||||
|
fi
|
||||||
|
# End Nix
|
||||||
|
'';
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue