summaryrefslogtreecommitdiff
path: root/users/seth/programs/git.nix
blob: 4ec67b828c279f87fb5434dc51bee9c71204edd1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
_: {
  programs.git = {
    enable = true;
    extraConfig = {
      init = {defaultBranch = "main";};
      safe = {directory = "/etc/nixos";};
    };
    signing = {
      key = "D31BD0D494BBEE86";
      signByDefault = true;
    };
    userEmail = "[email protected]";
    userName = "seth";
  };
  services.gpg-agent.extraConfig = ''
    pinentry-program /run/current-system/sw/bin/pinentry
  '';
}