From aa00bd91b02109b552a21c33b535b5d163b64980 Mon Sep 17 00:00:00 2001 From: Soispha Date: Tue, 18 Apr 2023 16:28:25 +0200 Subject: Feat(hm/conf/git): Add global ignore for Session.vim files --- home-manager/config/git/default.nix | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'home-manager/config/git/default.nix') 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"; }; -- cgit 1.4.1