1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2025-02-23 08:35:08 +01:00

git: fix signer defaults

Co-authored-by: Mario Rodas <marsam@users.noreply.github.com>
This commit is contained in:
Sizhe Zhao 2024-06-09 15:40:22 +08:00
parent a5bf30e355
commit 92963fa459
No known key found for this signature in database
GPG key ID: 52091D14C4D7017B

View file

@ -434,9 +434,9 @@ in {
format = mkIf (versionOlder config.home.stateVersion "24.11")
(mkOptionDefault "openpgp");
signer = mkIf (cfg.signing.format != null) (mkOptionDefault {
openpgp = getExe' pkgs.gnupg "gpg2";
ssh = getExe pkgs.ssh;
x509 = getExe' pkgs.gnupg "gpgsm";
openpgp = getExe config.programs.gpg.package;
ssh = getExe' pkgs.openssh "ssh-keygen";
x509 = getExe' config.programs.gpg.package "gpgsm";
}.${cfg.signing.format});
};