summaryrefslogtreecommitdiff
path: root/home/common/modules/git.nix
blob: 077ee1db28929c8ddd87d6cf90ad627cebcb7d6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{ config, ... }:
let
  name = config.global.userdata.nameFq;
  email = config.global.userdata.email;
in
{
  programs.git = {
    enable = true;
    settings = {
      user = {
        inherit name;
        inherit email;
      };
      color.ui = "auto";
      init.defaultBranch = "master";
    };
  };
}