mirror of
https://github.com/ItsDrike/nixdots
synced 2024-11-10 04:59:42 +00:00
30 lines
691 B
Nix
30 lines
691 B
Nix
{ lib, ... }: with lib; let
|
|
inherit (lib) mkEnableOption mkOption;
|
|
in
|
|
{
|
|
options.myOptions.home-manager.git = {
|
|
userName = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
description = "The default git user name.";
|
|
};
|
|
userEmail = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
description = "The default git user email.";
|
|
};
|
|
|
|
signing = {
|
|
enable = mkEnableOption ''
|
|
git commit signing.
|
|
Requires `myOptions.home-manager.git.signing.key` to be set.
|
|
'';
|
|
key = mkOption {
|
|
type = types.str;
|
|
default = "";
|
|
description = "The defaul GPG key fingerprint for signing.";
|
|
};
|
|
};
|
|
};
|
|
}
|