summaryrefslogtreecommitdiff
path: root/home/common/modules/git.nix
blob: 1f10da70f1c314c4e67b3315ffe8939faf2cc09a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{ 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";
    };
  };
}