30 lines
885 B
Nix
30 lines
885 B
Nix
{ pkgs, ... }:
|
|
|
|
{
|
|
programs.git = {
|
|
enable = true;
|
|
package = pkgs.gitFull;
|
|
aliases = {};
|
|
lfs.enable = true;
|
|
userEmail = "lazarescu.andrei19@gmail.com";
|
|
userName = "Andrei Lazarescu";
|
|
extraConfig = {
|
|
user.signingkey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFkft5uSiWODIKIBGFPSCRktDEaxYPbudDUYlYyj53w/";
|
|
gpg.format = "ssh";
|
|
gpg.ssh.program = "/Applications/1Password.app/Contents/MacOS/op-ssh-sign";
|
|
commit.gpgSign = true;
|
|
advice = {
|
|
addEmptyPathspec = false;
|
|
pushNonFastForward = false;
|
|
statusHints = false;
|
|
};
|
|
init.defaultBranch = "main";
|
|
pull.rebase = true;
|
|
push.autoSetupRemote = true;
|
|
"url \"git@github.com:\"".insteadOf = "gh:";
|
|
"url \"git@gitlab.com:\"".insteadOf = "gl:";
|
|
"url \"git@git.lazarescu.xyz:2222/lazandrei19/\"".insteadOf = "lz:";
|
|
};
|
|
};
|
|
}
|