mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 08:39:42 -04:00
19 lines
366 B
Nix
19 lines
366 B
Nix
{ pkgs, lib, config, ... }:
|
|
|
|
with lib;
|
|
let cfg = config.modules.git;
|
|
|
|
in
|
|
{
|
|
options.modules.git = { enable = mkEnableOption "git"; };
|
|
config = mkIf cfg.enable {
|
|
programs.git = {
|
|
enable = true;
|
|
userName = "Bryan Ramos";
|
|
userEmail = "bryan@ramos.codes";
|
|
extraConfig = {
|
|
init = { defaultBranch = "main"; };
|
|
};
|
|
};
|
|
};
|
|
}
|