diff options
author | Franck Cuny <franck@fcuny.net> | 2023-02-21 12:57:49 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-02-21 17:54:29 -0800 |
commit | 2b92007edd2b263b10b0fb00d34253f14ae2ae95 (patch) | |
tree | 0619440b9702cdb085bc2c112904ccadbcda9a1e /home | |
parent | feat(home/fish): new function to run home-manager (diff) | |
download | world-2b92007edd2b263b10b0fb00d34253f14ae2ae95.tar.gz |
fix(home/git): simplify gitignore configuration
Diffstat (limited to '')
-rw-r--r-- | home/git/default.nix | 22 | ||||
-rw-r--r-- | home/git/gitignore | 12 |
2 files changed, 13 insertions, 21 deletions
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 |