shift shellinit to zsh config

This commit is contained in:
Kabbone 2022-09-23 18:41:16 +02:00
parent c3b6ce61db
commit a129df16dc
2 changed files with 5 additions and 7 deletions

View File

@ -37,12 +37,6 @@
alacritty.settings.font.size = 11;
};
environment.shellInit = ''
export GPG_TTY="$(tty)"
gpg-connect-agent /bye
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
'';
services = { # Applets
blueman-applet.enable = true; # Bluetooth
network-manager-applet.enable = true; # Network

View File

@ -18,7 +18,11 @@
plugins = [ "git" ];
custom = "$HOME/.config/zsh_nix/custom";
};
shellInit = ''
export GPG_TTY="$(tty)"
gpg-connect-agent /bye
export SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh"
'';
initExtra = '' # Zsh theme
# Spaceship
source ${pkgs.spaceship-prompt}/share/zsh/site-functions/prompt_spaceship_setup