all repos — dotfiles @ 0a867ad2e58c21d31f0ce106ab5812a152c6b83f

my *nix dotfiles

programs/git.nix (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
{ config
, pkgs
, ...
}:

{
  programs.git = {
    enable = true;
    ignores = [ ".envrc" ];
    userEmail = "x@icyphox.sh";
    userName = "Anirudh Oppiliappan";
    signing = {
      key = "8A93F96F78C5D4C4";
      signByDefault = true;
    };
    extraConfig = {
      commit.verbose = true;
      init.defaultBranch = "master";
      pull.rebase = "true";

      url."ssh://git@github.com/".insteadOf = "https://github.com/";
      url."ssh://git@git.services.upcloud.com/".insteadOf = "https://git.services.upcloud.com/";
    };
    includes = [
      {
        "path" = "~/code/upcloud/gitconfig";
        "condition" = "gitdir:~/code/upcloud/";
      }
    ];
  };
}