fix: only enable dev shell start for user

This commit is contained in:
Patrick 2024-11-03 21:50:18 +01:00
parent 64e4b50b5a
commit a5a28c31cb
Signed by: patrick
GPG key ID: 451F95EFB8BECD0F
2 changed files with 5 additions and 6 deletions

View file

@ -20,11 +20,6 @@ lib.optionalAttrs (!minimal) {
services.nixseparatedebuginfod.enable = true; services.nixseparatedebuginfod.enable = true;
environment = { environment = {
enableDebugInfo = true; enableDebugInfo = true;
shellInit = ''
gpg-connect-agent /bye
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
umask 077
'';
}; };
documentation = { documentation = {
dev.enable = true; dev.enable = true;
@ -33,4 +28,9 @@ lib.optionalAttrs (!minimal) {
info.enable = false; info.enable = false;
nixos.enable = false; nixos.enable = false;
}; };
hm.programs.zsh.initExtra = ''
gpg-connect-agent /bye
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
umask 077
'';
} }

View file

@ -39,7 +39,6 @@
zle -N history-beginning-search-backward-end history-search-end zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end zle -N history-beginning-search-forward-end history-search-end
fi fi
''; '';
plugins = [ plugins = [
{ {