nixdots/options/home/git.nix
2024-04-07 17:00:49 +02:00

30 lines
692 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 = {
enabled = 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.";
};
};
};
}