feat(work): source ~/.jenkinsenv in all zsh shells #64
@@ -51,6 +51,16 @@
|
|||||||
home.shellAliases = {
|
home.shellAliases = {
|
||||||
docker = "/run/current-system/sw/bin/docker";
|
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"
|
||||||
|
'';
|
||||||
programs.tmux = {
|
programs.tmux = {
|
||||||
# kube context/namespace in the status line. kube-tmux is pinned as a flake
|
# 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.
|
# input (it is not in nixpkgs), so the script is always present in the store.
|
||||||
|
|||||||
Reference in New Issue
Block a user