added stuff

This commit is contained in:
vali 2024-04-09 23:11:33 +02:00
commit 236b8c2a6b
907 changed files with 70990 additions and 0 deletions

View file

@ -0,0 +1,53 @@
{lib, ...}: let
general = ''
.cache/
tmp/
*.tmp
log/
'';
ide = ''
*.swp
.idea/
.~lock*
'';
c = ''
.tags
tags
*~
*.o
*.so
*.cmake
CMakeCache.txt
CMakeFiles/
cmake-build-debug/
compile_commands.json
.ccls*
'';
nix = ''
result
result-*
.direnv/
'';
node = ''
node_modules/
'';
python = ''
venv
.venv
*pyc
*.egg-info/
__pycached__/
.mypy_cache
'';
ignore = lib.concatStringsSep "\n" [general c nix node ide python];
in {
# construct the list of ignored files from a very large string containing
# the list of ignored files, but in a plaintext format for my own convenience
programs.git.ignores = map (v: "${toString v}") (builtins.split "\n" ignore);
}