os/shared/home/git.nix
2023-05-21 19:15:04 +00:00

30 lines
506 B
Nix

{ pkgs, lib, config, ... }:
let cfg = config.custom.git;
in with lib; {
options.custom.git = {
name = mkOption {
type = types.str;
default = "Riley Apeldoorn";
};
mail = mkOption {
type = types.str;
default = "me@riley.lgbt";
};
};
config = {
programs.git = {
enable = true;
userName = cfg.name;
userEmail = cfg.mail;
extraConfig = {
pull.rebase = false;
init.defaultBranch = "mistress";
};
};
};
}