Files
.dotfiles/home/programs/zsh.nix
T
2026-08-03 07:24:48 -06:00

18 lines
384 B
Nix

{ config, pkgs, ... }:
{
programs.zsh = {
enable = true;
initContent = ''
if [ -f "/run/secrets/vaultwarden_clientid" ]; then
export BW_CLIENTID=$(cat /run/secrets/vaultwarden_clientid)
fi
if [ -f "/run/secrets/vaultwarden_clientsecret" ]; then
export BW_CLIENTSECRET=$(cat /run/secrets/vaultwarden_clientsecret)
fi
'';
};
}