diff --git a/users/emmathorpe/work.nix b/users/emmathorpe/work.nix index 1b76ffc..adbf0e6 100644 --- a/users/emmathorpe/work.nix +++ b/users/emmathorpe/work.nix @@ -51,6 +51,17 @@ home.shellAliases = { docker = "/run/current-system/sw/bin/docker"; }; + + # Source the (nix-unmanaged) Jenkins credentials file into every zsh, so the + # JENKINS_UCE_/JENKINS_STF_ tokens are exported for all shells and anything they + # launch -- the Jenkins MCP servers read them via ${JENKINS_*} expansion. + # envExtra lands in ~/.zshenv, which zsh sources for login, interactive, and + # non-interactive shells alike. Guarded so a missing file never breaks a shell; + # the file holds secrets, so it is kept out of the world-readable nix store. + programs.zsh.envExtra = '' + [ -f "$HOME/.jenkinsenv" ] && . "$HOME/.jenkinsenv" + [ -f "$HOME/.splunkenv" ] && . "$HOME/.splunkenv" + ''; programs.tmux = { # kube context/namespace in the status line. kube-tmux is pinned as a flake # input (it is not in nixpkgs), so the script is always present in the store.