summaryrefslogtreecommitdiff
path: root/profiles/core/git.nix
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2023-10-07 01:33:26 +0200
committerMike Vink <mike1994vink@gmail.com>2023-10-07 01:33:26 +0200
commita2cbf737e78051c2cb10eeaf4a5dccc19d6348ba (patch)
treef53ab92a0c94926e92117891eb87f19cafaa536c /profiles/core/git.nix
parentcfaef26e8718916adcc68fbfb63b15f2389b2cd2 (diff)
first working
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"
+ ];
+ };
+ };
+}