diff --git a/home/laozi/common/core/git.nix b/home/laozi/common/core/git.nix new file mode 100644 index 0000000..fb59635 --- /dev/null +++ b/home/laozi/common/core/git.nix @@ -0,0 +1,29 @@ +{ pkgs, lib, config, ... }: +{ + programs.git = { + enable = true; + package = pkgs.gitAndTools.gitFull; + userName = "madmin42"; + userEmail = "areyoumad@mattmor.in"; + aliases = { }; + extraConfig = { + init.defaultBranch = "main"; + 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" ]; + }; +} \ No newline at end of file