nixos-config-priv/home/zhuangzi/common/core/git.nix

30 lines
772 B
Nix
Raw Normal View History

2024-06-07 11:37:13 +00:00
{ pkgs, lib, config, ... }:
{
programs.git = {
enable = true;
package = pkgs.gitAndTools.gitFull;
userName = "mattmor";
userEmail = "matt.b.morin@protonmail.com";
aliases = { };
extraConfig = {
init.defaultBranch = "master";
url = {
"ssh://git@github.com" = {
insteadOf = "https://github.com";
};
"ssh://git@gitlab.com" = {
insteadOf = "https://gitlab.com";
};
};
user.signing.key = "";
#TODO sops - Re-enable once sops setup complete
commit.gpgSign = false;
gpg.program = "${config.programs.gpg.package}/bin/gpg2";
};
# enable git Large File Storage: https://git-lfs.com/
# lfs.enable = true;
ignores = [ ".direnv" "result" ];
};
}