config.nix/modules/development/git.nix
2025-12-18 11:47:21 +01:00

34 lines
533 B
Nix

{
config,
lib,
pkgs,
...
}:
{
options = {
development = {
git.enable = lib.mkEnableOption "enable git";
};
};
config = lib.mkIf config.development.git.enable {
programs = {
git = {
enable = true;
settings = {
init = {
defaultBranch = "main";
};
user = {
email = "marty@marty.tf";
name = "marty";
};
push = {
autoSetupRemote = true;
};
};
};
};
};
}