From 2b92007edd2b263b10b0fb00d34253f14ae2ae95 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 21 Feb 2023 12:57:49 -0800 Subject: fix(home/git): simplify gitignore configuration --- home/git/default.nix | 22 +--------------------- home/git/gitignore | 12 ++++++++++++ 2 files changed, 13 insertions(+), 21 deletions(-) create mode 100644 home/git/gitignore diff --git a/home/git/default.nix b/home/git/default.nix index 557485b..96affa7 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -55,27 +55,7 @@ in "credential \"https://github.com\"" = { username = "fcuny"; }; "credential \"https://git.fcuny.net\"" = { username = "fcuny"; }; }; - ignores = [ - "*.elc" - "*.iml" - "*.o" - "*.pyc" - "*.pyo" - "*pyc" - "*~" - ".DS_Store" - ".\\#" - ".dir-locals.el" - ".direnv/*" - ".idea" - ".projectile" - ".pytest_cache/" - "/env/*" - "Icon" - "TAGS" - "\\#*\\#" - "tags" - ]; + ignores = [ (builtins.readFile ./gitignore) ]; }; xdg.dataFile."git/commit.template" = { source = ./commit.template; }; home.packages = with pkgs; [ tools.git-blame-stats gitAndTools.pre-commit ]; diff --git a/home/git/gitignore b/home/git/gitignore new file mode 100644 index 0000000..83adbce --- /dev/null +++ b/home/git/gitignore @@ -0,0 +1,12 @@ +*.elc +*pyc +*~ +.DS_Store +.\\# +.dir-locals.el +.direnv/* +.projectile +.pytest_cache/ +tags +/result +/.pre-commit-config.yaml -- cgit 1.4.1