mirror of
https://github.com/nix-community/home-manager
synced 2024-11-29 16:10:33 +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 {
|
signByDefault = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = "Whether commits should be signed by default.";
|
description = "Whether commits and tags should be signed by default.";
|
||||||
};
|
};
|
||||||
|
|
||||||
gpgPath = mkOption {
|
gpgPath = mkOption {
|
||||||
|
@ -444,6 +444,7 @@ in {
|
||||||
programs.git.iniContent = {
|
programs.git.iniContent = {
|
||||||
user.signingKey = mkIf (cfg.signing.key != null) cfg.signing.key;
|
user.signingKey = mkIf (cfg.signing.key != null) cfg.signing.key;
|
||||||
commit.gpgSign = cfg.signing.signByDefault;
|
commit.gpgSign = cfg.signing.signByDefault;
|
||||||
|
tag.gpgSign = cfg.signing.signByDefault;
|
||||||
gpg.program = cfg.signing.gpgPath;
|
gpg.program = cfg.signing.gpgPath;
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
|
@ -43,6 +43,9 @@
|
||||||
[interactive]
|
[interactive]
|
||||||
diffFilter = "@delta@/bin/delta --color-only"
|
diffFilter = "@delta@/bin/delta --color-only"
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
gpgSign = true
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = "user@example.org"
|
email = "user@example.org"
|
||||||
name = "John Doe"
|
name = "John Doe"
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
[gpg]
|
[gpg]
|
||||||
program = "path-to-gpg"
|
program = "path-to-gpg"
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
gpgSign = true
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = "user@example.org"
|
email = "user@example.org"
|
||||||
name = "John Doe"
|
name = "John Doe"
|
||||||
|
|
|
@ -4,6 +4,9 @@
|
||||||
[gpg]
|
[gpg]
|
||||||
program = "path-to-gpg"
|
program = "path-to-gpg"
|
||||||
|
|
||||||
|
[tag]
|
||||||
|
gpgSign = true
|
||||||
|
|
||||||
[user]
|
[user]
|
||||||
email = "user@example.org"
|
email = "user@example.org"
|
||||||
name = "John Doe"
|
name = "John Doe"
|
||||||
|
|
Loading…
Reference in a new issue