summaryrefslogtreecommitdiff
path: root/profiles/core/git.nix
diff options
context:
space:
mode:
Diffstat (limited to 'profiles/core/git.nix')
-rw-r--r--profiles/core/git.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/profiles/core/git.nix b/profiles/core/git.nix
new file mode 100644
index 0000000..84b165a
--- /dev/null
+++ b/profiles/core/git.nix
@@ -0,0 +1,20 @@
+{config, ...}: {
+ hm = {
+ programs.git = {
+ enable = true;
+ userName = "Mike Vink";
+ userEmail = "mike1994vink@gmail.com";
+ extraConfig = {
+ worktree.guessRemote = true;
+ mergetool.fugitive.cmd = "vim -f -c \"Gdiff\" \"$MERGED\"";
+ merge.tool = "fugitive";
+ };
+ ignores = [
+ "/.direnv/"
+ "/.envrc"
+ "/.env"
+ ".vimsession.vim"
+ ];
+ };
+ };
+}