Add env and aliases for home-manager
This commit is contained in:
parent
4f5d9a240e
commit
2353b4cfac
2 changed files with 14 additions and 2 deletions
.config
|
@ -45,6 +45,8 @@ export MAKEFLAGS="-j$_makeflags"
|
|||
export MARKPATH="$XDG_CONFIG_HOME/zsh/jump_marks"
|
||||
export MENU="bemenu"
|
||||
|
||||
_whoami=$(whoami)
|
||||
export NIX_PATH="$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/$_whoami/channels${NIX_PATH:+:$NIX_PATH}"
|
||||
export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config"
|
||||
|
||||
export OPENFAAS_URL="https://faas.serguzim.me"
|
||||
|
@ -80,6 +82,13 @@ export ZSH="$ZDOTDIR/oh-my-zsh"
|
|||
[ -x "$(command -v moar)" ] && export MANPAGER="moar"
|
||||
[ -x "$(command -v moar)" ] && export PAGER="moar"
|
||||
|
||||
set -a
|
||||
if [ -x "$(command -v home-manager)" ] && [ -x "$(command -v nix)" ]
|
||||
then
|
||||
[ -f "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" ] \
|
||||
&& . "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh"
|
||||
|
||||
[ -d "$HOME/.nix-profile/share" ] \
|
||||
&& export XDG_DATA_DIRS="$HOME/.nix-profile/share:$XDG_DATA_DIRS"
|
||||
fi
|
||||
|
||||
[ -f "$HOME/.config/environment.local" ] && . "$HOME/.config/environment.local"
|
||||
set +a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue