From 914b52c618c263be0f22a50f91fa870f6cf717e4 Mon Sep 17 00:00:00 2001 From: Mike Vink <59492084+ivi-vink@users.noreply.github.com> Date: Fri, 18 Oct 2024 12:07:42 +0000 Subject: github use private email settings --- profiles/core/git.nix | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/profiles/core/git.nix b/profiles/core/git.nix index 871ac7d..a09552f 100644 --- a/profiles/core/git.nix +++ b/profiles/core/git.nix @@ -15,9 +15,26 @@ with lib; { merge.tool = "fugitive"; gpg.format = "ssh"; user.signingKey = "${config.my.home}/.ssh/id_ed25519_sk.pub"; - commit.gpgsign = true; + commit.gpgsign = false; }; + includes = let + no-reply-email = { + user = { + email = "59492084+ivi-vink@users.noreply.github.com"; + }; + }; + in [ + { + condition = "hasconfig:remote.*.url:git@github.com:**/**"; + contents = no-reply-email; + } + { + condition = "hasconfig:remote.*.url:https://github.com/**/**"; + contents = no-reply-email; + } + ]; + ignores = [ "/.direnv/" "/.envrc" -- cgit v1.2.3