mirror of
https://github.com/nix-community/home-manager
synced 2024-11-22 04:33:11 +00:00
git: gpg sign tags with signing.signByDefault set
The `tag.gpgSign` config option was added in Git 2.23.0 and seems like it should be set in addition to `commit.gpgSign` when `programs.git.signing.signByDefault` is enabled
This commit is contained in:
parent
de079ec371
commit
140aaed3df
4 changed files with 11 additions and 1 deletions
|
@ -73,7 +73,7 @@ let
|
|||
signByDefault = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
description = "Whether commits should be signed by default.";
|
||||
description = "Whether commits and tags should be signed by default.";
|
||||
};
|
||||
|
||||
gpgPath = mkOption {
|
||||
|
@ -444,6 +444,7 @@ in {
|
|||
programs.git.iniContent = {
|
||||
user.signingKey = mkIf (cfg.signing.key != null) cfg.signing.key;
|
||||
commit.gpgSign = cfg.signing.signByDefault;
|
||||
tag.gpgSign = cfg.signing.signByDefault;
|
||||
gpg.program = cfg.signing.gpgPath;
|
||||
};
|
||||
})
|
||||
|
|
|
@ -43,6 +43,9 @@
|
|||
[interactive]
|
||||
diffFilter = "@delta@/bin/delta --color-only"
|
||||
|
||||
[tag]
|
||||
gpgSign = true
|
||||
|
||||
[user]
|
||||
email = "user@example.org"
|
||||
name = "John Doe"
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
[gpg]
|
||||
program = "path-to-gpg"
|
||||
|
||||
[tag]
|
||||
gpgSign = true
|
||||
|
||||
[user]
|
||||
email = "user@example.org"
|
||||
name = "John Doe"
|
||||
|
|
|
@ -4,6 +4,9 @@
|
|||
[gpg]
|
||||
program = "path-to-gpg"
|
||||
|
||||
[tag]
|
||||
gpgSign = true
|
||||
|
||||
[user]
|
||||
email = "user@example.org"
|
||||
name = "John Doe"
|
||||
|
|
Loading…
Reference in a new issue