os/shared/home/git.nix

32 lines
533 B
Nix
Raw Permalink Normal View History

2023-05-21 21:15:04 +02:00
{ 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";
};
2023-06-06 17:19:39 +02:00
delta.enable = true;
2023-05-21 21:15:04 +02:00
};
};
}