fix: properly source env-vars
Had an issue where hyprland wouldn't source the env-vars for stuff because I put the source for it under the execute hyprland :)
This commit is contained in:
parent
ff9cc5ad63
commit
6edd87f13a
1 changed files with 8 additions and 6 deletions
14
config/zshrc
14
config/zshrc
|
@ -93,13 +93,15 @@ eval "$(zoxide init zsh)"
|
||||||
export PATH="${PATH}:/home/flyingstitchman/.cargo/bin"
|
export PATH="${PATH}:/home/flyingstitchman/.cargo/bin"
|
||||||
|
|
||||||
# Clean Up
|
# Clean Up
|
||||||
export MBSYNCRC=${XDG_CONFIG_HOME:-~/.config}/mbsync/config
|
export MBSYNCRC=$XDG_CONFIG_HOME/mbsync/config
|
||||||
export PASSWORD_STORE_DIR=${XDG_CONFIG_HOME:-~/.config}/password_store
|
export PASSWORD_STORE_DIR=$XDG_CONFIG_HOME/password_store
|
||||||
export NOTMUCH_CONFIG=${XDG_CONFIG_HOME-~/.config}/notmuch/config
|
export NOTMUCH_CONFIG=$XDG_CONFIG_HOME/notmuch/config
|
||||||
export KDEHOME="$XDG_CONFIG_HOME"/kde
|
export KDEHOME="$XDG_CONFIG_HOME"/kde
|
||||||
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
|
export GRADLE_USER_HOME="$XDG_DATA_HOME"/gradle
|
||||||
|
export GNUPGHOME=$XDG_DATA_HOME/gnupg
|
||||||
export GOPATH="$XDG_DATA_HOME"
|
export GOPATH="$XDG_DATA_HOME"
|
||||||
export GOMODCACHE="$XDG_CACHE_HOME"
|
export GOMODCACHE="$XDG_CACHE_HOME"
|
||||||
|
export GPG_TTY=$(tty)
|
||||||
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
|
export NUGET_PACKAGES="$XDG_CACHE_HOME"/NuGetPackages
|
||||||
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
|
export _JAVA_OPTIONS=-Djava.util.prefs.userRoot="$XDG_CONFIG_HOME"/java
|
||||||
export WINEPREFIX="$XDG_DATA_HOME"/wineprefixes/default
|
export WINEPREFIX="$XDG_DATA_HOME"/wineprefixes/default
|
||||||
|
@ -117,6 +119,9 @@ reconfig() {
|
||||||
sudo nixos-rebuild --flake "/etc/nixos#$(cat /etc/hostname)" "$@"
|
sudo nixos-rebuild --flake "/etc/nixos#$(cat /etc/hostname)" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Home Manager Variables
|
||||||
|
source ~/.local/state/nix/profiles/home-manager/home-path/etc/profile.d/hm-session-vars.sh
|
||||||
|
|
||||||
# Autostart Hyprland after all environmental Variables have been declared
|
# Autostart Hyprland after all environmental Variables have been declared
|
||||||
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
if [ -z $DISPLAY ] && [ "$(tty)" = "/dev/tty1" ]; then
|
||||||
exec Hyprland
|
exec Hyprland
|
||||||
|
@ -126,6 +131,3 @@ export QSYS_ROOTDIR="~/.cache/paru/clone/quartus-free/pkg/quartus-free-quartus/o
|
||||||
|
|
||||||
# Nix Direnv Support
|
# Nix Direnv Support
|
||||||
eval "$(direnv hook zsh)"
|
eval "$(direnv hook zsh)"
|
||||||
|
|
||||||
# Home Manager Variables
|
|
||||||
source ~/.local/state/nix/profiles/home-manager/home-path/etc/profile.d/hm-session-vars.sh
|
|
||||||
|
|
Loading…
Reference in a new issue