can sign commits now
This commit is contained in:
parent
337b8dc147
commit
0972cfc810
2 changed files with 14 additions and 0 deletions
|
@ -20,12 +20,23 @@ in
|
||||||
example = true;
|
example = true;
|
||||||
description = "Generate my job configuration";
|
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 {
|
config = lib.mkIf cfg.enable {
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userName = "Jakub Kropáček";
|
userName = "Jakub Kropáček";
|
||||||
userEmail = "kropikuba@gmail.com";
|
userEmail = "kropikuba@gmail.com";
|
||||||
|
signing = lib.mkIf cfg.signing {
|
||||||
|
format = "openpgp";
|
||||||
|
key = "4EC6A2C45D75FC86";
|
||||||
|
signByDefault = true;
|
||||||
|
};
|
||||||
includes =
|
includes =
|
||||||
if cfg.work-config then
|
if cfg.work-config then
|
||||||
let
|
let
|
||||||
|
@ -33,6 +44,8 @@ in
|
||||||
user = {
|
user = {
|
||||||
email = "jakub.kropacek@olc.cz";
|
email = "jakub.kropacek@olc.cz";
|
||||||
name = "Jakub Kropáček";
|
name = "Jakub Kropáček";
|
||||||
|
|
||||||
|
signingkey = lib.optionalString cfg.signing "E1464E538D595102";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
|
|
|
@ -10,6 +10,7 @@
|
||||||
};
|
};
|
||||||
programs.git = {
|
programs.git = {
|
||||||
work-config = true;
|
work-config = true;
|
||||||
|
signing = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue