37 lines
1.2 KiB
Nix
37 lines
1.2 KiB
Nix
{ pkgs, lib, config, ... }:
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
package = pkgs.gitAndTools.gitFull.overrideAttrs = (old: {
|
|
postInstall = old.postInstall + ''
|
|
cp ${./includes/git-aliases/docs}* $Doc/share/doc/git
|
|
''
|
|
});
|
|
userName = "madmin";
|
|
userEmail = "madmin@noreply.codeberg.com";
|
|
aliases = {
|
|
gs = "status";
|
|
lg = "!git log --graph --oneline --decorate --all";
|
|
};
|
|
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" ];
|
|
};
|
|
}
|
|
|