mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-23 16:29:42 -04:00
21 lines
362 B
Nix
21 lines
362 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;
|
|
extraConfig = {
|
|
init = { defaultBranch = "main"; };
|
|
};
|
|
};
|
|
|
|
home.file = {
|
|
".gitconfig".source = ./gitconfig;
|
|
};
|
|
};
|
|
}
|