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

16 lines
362 B
Nix

{ config, pkgs, ... }:
{
programs.zsh = {
initExtra = ''
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
'';
};
}