can sign commits now

This commit is contained in:
Jakub Kropáček 2025-06-12 11:54:58 +02:00
parent 337b8dc147
commit 0972cfc810
Signed by: JustScreaMy
GPG key ID: 4EC6A2C45D75FC86
2 changed files with 14 additions and 0 deletions

View file

@ -20,12 +20,23 @@ in
example = true;
description = "Generate my job configuration";
};
signing = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Sign all commits";
};
};
config = lib.mkIf cfg.enable {
programs.git = {
enable = true;
userName = "Jakub Kropáček";
userEmail = "kropikuba@gmail.com";
signing = lib.mkIf cfg.signing {
format = "openpgp";
key = "4EC6A2C45D75FC86";
signByDefault = true;
};
includes =
if cfg.work-config then
let
@ -33,6 +44,8 @@ in
user = {
email = "jakub.kropacek@olc.cz";
name = "Jakub Kropáček";
signingkey = lib.optionalString cfg.signing "E1464E538D595102";
};
};
in

View file

@ -10,6 +10,7 @@
};
programs.git = {
work-config = true;
signing = true;
};
};
}