diff --git a/src/home/shell/git.nix b/src/home/shell/git.nix index 92abac1..0461ef1 100644 --- a/src/home/shell/git.nix +++ b/src/home/shell/git.nix @@ -4,7 +4,7 @@ config, ... }: -let +let home = config.home.homeDirectory; in { @@ -15,7 +15,22 @@ in }; userEmail = "rs@rs.ht"; userName = "Ray Andrew"; - signing.key = "${home}/.ssh/id_ed25519.pub"; + signing = { + key = "${home}/.ssh/id_ed25519.pub"; + signByDefault = true; + gpgPath = ""; + }; + ignores = [ + ".DS_Store" + "*~" + "*.swp" + ]; + extraConfig = { + gpg.format = "ssh"; + core.editor = "nvim"; + credential.helper = "store --file ${home}/.git-credentials"; + pull.rebase = true; + }; }; programs.gh = {