2024-04-04 18:16:56 +00:00
|
|
|
{ lib, ... }: with lib; let
|
|
|
|
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 = {
|
|
|
|
enabled = mkOption {
|
|
|
|
type = types.bool;
|
|
|
|
default = true;
|
|
|
|
description = "Should commits and tags be sgined by default?";
|
|
|
|
};
|
|
|
|
key = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "";
|
|
|
|
description = "The defaul GPG key fingerprint for signing.";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|