chore(gnupg): remove duplicate code

This commit is contained in:
Yorick Barbanneau 2025-08-29 23:24:46 +02:00
parent 38267e6530
commit 2dca1fb254
Signed by: ephase
GPG key ID: 246042E52B41FFCF

View file

@ -46,12 +46,6 @@ in
noAllowExternalCache = true; noAllowExternalCache = true;
}; };
home.sessionVariablesExtra = lib.mkIf cfg.enableSshSupport ''
if [[ -z "''${SSH_AUTH_SOCK}" ]]; then
export SSH_AUTH_SOCK="$(${config.programs.gpg.package}/bin/gpgconf --list-dirs agent-ssh-socket)"
fi
'';
services.ssh-agent.enable = if cfg.enableSshSupport then false else true; services.ssh-agent.enable = if cfg.enableSshSupport then false else true;
programs.password-store = { programs.password-store = {
enable = cfg.pass; enable = cfg.pass;