aboutsummaryrefslogtreecommitdiff
path: root/nix/modules/home/git.nix
blob: 84f3b0f61481637d51f9cfa6bcaddb457a147121 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib, config, ... }:
{
  enable = lib.mkDefault config.monorepo.profiles.home.enable;
  userName = config.vars.fullName;
  userEmail = config.vars.email;
  signing = {
    key = config.vars.gpgKey;
    signByDefault = true;
  };

  extraConfig = {
    init.defaultBranch = "main";
  };

  aliases = {
    co = "checkout";
    c = "commit";
    a = "add";
    s = "switch";
    b = "branch";
  };
}