summaryrefslogtreecommitdiff
path: root/home/common/modules/git.nix
blob: 3f8a98e484973a63f2d41cca04f0a091f40e0233 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ config, ... }:
let
  userName = config.global.userdata.nameFq;
  userEmail = config.global.userdata.email;
in
{
  programs.git = {
    enable = true;
    inherit userName;
    inherit userEmail;

    extraConfig = {
      color.ui = "auto";
      init.defaultBranch = "master";
    };
  };
}