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 |
{ config
, pkgs
, ...
}:
{
programs.git = {
enable = true;
ignores = [ ".envrc" ];
userEmail = "x@icyphox.sh";
userName = "Anirudh Oppiliappan";
extraConfig = {
commit.verbose = true;
init.defaultBranch = "master";
pull.rebase = "true";
gpg.format = "ssh";
user.signingkey = "~/.ssh/id_ed25519.pub";
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/";
}
];
};
}
|