29 lines
703 B
Nix
29 lines
703 B
Nix
{ config, lib, ... }: {
|
|
|
|
options.homeconfig.git.enable = lib.options.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
};
|
|
|
|
config = lib.mkIf config.homeconfig.git.enable {
|
|
|
|
programs.git = {
|
|
userName = "Nathan";
|
|
userEmail = "nathanblunkall5@gmail.com";
|
|
|
|
extraConfig = {
|
|
init = {
|
|
defaultBranch = "master";
|
|
};
|
|
url = {
|
|
"ssh://gitea@gitea.blunkall.us/" = {
|
|
insteadOf = [
|
|
"blunkall:"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|