2024-07-26 23:07:07 +00:00
|
|
|
{lib, ...}:
|
|
|
|
with lib; let
|
2024-04-07 14:54:36 +00:00
|
|
|
inherit (lib) mkEnableOption mkOption;
|
2024-07-26 23:07:07 +00:00
|
|
|
in {
|
2024-04-04 18:16:56 +00:00
|
|
|
options.myOptions.home-manager.git = {
|
2024-04-05 00:03:22 +00:00
|
|
|
userName = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "";
|
|
|
|
description = "The default git user name.";
|
|
|
|
};
|
|
|
|
userEmail = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "";
|
|
|
|
description = "The default git user email.";
|
|
|
|
};
|
|
|
|
|
2024-04-04 18:16:56 +00:00
|
|
|
signing = {
|
2024-04-16 09:55:53 +00:00
|
|
|
enable = mkEnableOption ''
|
2024-04-07 14:54:36 +00:00
|
|
|
git commit signing.
|
|
|
|
Requires `myOptions.home-manager.git.signing.key` to be set.
|
|
|
|
'';
|
2024-04-04 18:16:56 +00:00
|
|
|
key = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "";
|
|
|
|
description = "The defaul GPG key fingerprint for signing.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|