diff --git a/flake.nix b/flake.nix index 414ca01..1db99fe 100644 --- a/flake.nix +++ b/flake.nix @@ -194,6 +194,22 @@ 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; + "url \"git@github.com:\"".insteadOf = "gh:"; + "url \"git@gitlab.com:\"".insteadOf = "gl:"; + "url \"git@git.lazarescu.xyz:2222/lazandrei19/\"".insteadOf = "lz:"; + }; }; };