Secrets refactored and added cachix-auth-token secret

This commit is contained in:
Andrea Ciceri 2023-04-01 16:24:11 +02:00
parent 0ecc14fd8a
commit 207920afaf
Signed by: aciceri
SSH key fingerprint: SHA256:/AagBweyV4Hlfg9u092n8hbHwD5fcB6A3qhDiDA65Rg
13 changed files with 120 additions and 114 deletions

View file

@ -2,6 +2,7 @@
config,
lib,
pkgs,
age,
...
}: {
programs.bat.enable = true;
@ -129,6 +130,7 @@
loginExtra = "[[ -z $DISPLAY && $TTY = /dev/tty1 ]] && exec sway";
envExtra = ''
[ $TERM = "dumb" ] && unsetopt zle && PS1='$ ' # for Emacs TRAMP mode
export CACHIX_AUTH_TOKEN=$(cat ${age.secrets.cachix-personal-token.path})
'';
initExtra = ''
# Don't enable VIM emulation when in Emacs