diff --git a/modules/programs/git.nix b/modules/programs/git.nix index 0b5dae5bc..75f062f56 100644 --- a/modules/programs/git.nix +++ b/modules/programs/git.nix @@ -466,8 +466,8 @@ in { (mkIf (cfg.signing != null) { programs.git.iniContent = { user.signingKey = mkIf (cfg.signing.key != null) cfg.signing.key; - commit.gpgSign = cfg.signing.signByDefault; - tag.gpgSign = cfg.signing.signByDefault; + commit.gpgSign = mkDefault cfg.signing.signByDefault; + tag.gpgSign = mkDefault cfg.signing.signByDefault; gpg.program = cfg.signing.gpgPath; }; })