diff --git a/home-manager/git/default.nix b/home-manager/git/default.nix index 76b276c..dc849f6 100644 --- a/home-manager/git/default.nix +++ b/home-manager/git/default.nix @@ -8,7 +8,13 @@ userName = "Noah Knegt"; userEmail = "personal@noahknegt.com"; + signing = { + key = "~/.ssh/id_ed25519.pub"; + signByDefault = true; + }; + extraConfig = { + gpg = { format = "ssh"; }; push = { autoSetupRemote = true; }; pull = { rebase = true; }; fetch = { prune = true; }; @@ -17,12 +23,14 @@ includes = [ { condition = "gitdir:~/git.noahknegt.com"; + path = "~/.config/git/git.noahknegt.com.gitconfig"; contents = { userEmail = "git@noahknegt.com"; }; } { condition = "gitdir:~/open-source"; + path = "~/.config/git/open-source.gitconfig"; contents = { userEmail = "git@noahknegt.com"; };