about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-04-18 16:28:25 +0200
committerSoispha <soispha@vhack.eu>2023-05-09 19:31:09 +0200
commitaa00bd91b02109b552a21c33b535b5d163b64980 (patch)
tree39de27b8adac599e858c3e9398676b4f302ae269
parentChore(flake): Update (diff)
downloadnixos-config-aa00bd91b02109b552a21c33b535b5d163b64980.tar.gz
nixos-config-aa00bd91b02109b552a21c33b535b5d163b64980.zip
Feat(hm/conf/git): Add global ignore for Session.vim files
-rw-r--r--home-manager/config/git/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/home-manager/config/git/default.nix b/home-manager/config/git/default.nix
index 7e5f44ac..12fdaf09 100644
--- a/home-manager/config/git/default.nix
+++ b/home-manager/config/git/default.nix
@@ -3,6 +3,9 @@
   pkgs,
   ...
 }: let
+  gitIgnoreFile = pkgs.writeText "git_ignore.git" ''
+    Session.vim
+  '';
   gitTemplateFile =
     pkgs.writeText "git_template.git"
     ''
@@ -72,6 +75,9 @@
     '';
 
   gitConfig = {
+    core = {
+      excludesFile = "${gitIgnoreFile}";
+    };
     init = {
       defaultBranch = "prime";
     };