2024-04-04 18:16:56 +00:00
|
|
|
{ lib, ... }: with lib; let
|
2024-04-07 14:54:36 +00:00
|
|
|
inherit (lib) mkEnableOption mkOption;
|
2024-04-04 18:16:56 +00:00
|
|
|
in
|
|
|
|
{
|
|
|
|
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-07 14:54:36 +00:00
|
|
|
enabled = mkEnableOption ''
|
|
|
|
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.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|