summaryrefslogtreecommitdiff
path: root/profiles
diff options
context:
space:
mode:
authorMike Vink <mike@pionative.com>2024-02-15 21:26:10 +0100
committerMike Vink <mike@pionative.com>2024-02-15 21:26:10 +0100
commit39b72284607522fb99125334bf369a040170fc19 (patch)
treee22598f9599aa57a73625164e0eb1561de586f9e /profiles
parentf41d6200d42b2bb7c4130b54059eb8a221ce2ec4 (diff)
git: email
Diffstat (limited to 'profiles')
-rw-r--r--profiles/core/git.nix7
1 files changed, 5 insertions, 2 deletions
diff --git a/profiles/core/git.nix b/profiles/core/git.nix
index 70b4648..39cbf5c 100644
--- a/profiles/core/git.nix
+++ b/profiles/core/git.nix
@@ -1,13 +1,16 @@
-{lib, ...}: with lib; {
+{config,lib, ...}: with lib;
+{
hm = {
programs.git = {
enable = true;
userName = ivi.realName;
- userEmail = ivi.email;
+ userEmail = if config.networking.hostName == "work" then "mike@pionative.com" else ivi.email;
extraConfig = {
worktree.guessRemote = true;
mergetool.fugitive.cmd = "vim -f -c \"Gdiff\" \"$MERGED\"";
merge.tool = "fugitive";
+ gpg.format = "ssh";
+ user.signingKey = "${config.ivi.home}/.ssh/id_ed25519_sk.pub";
};
ignores = [
"/.direnv/"