home: git: add default ignores
This commit is contained in:
parent
d5ec493b92
commit
bf2671a162
2 changed files with 35 additions and 1 deletions
|
|
@ -1,4 +1,4 @@
|
|||
{ pkgs, ... }:
|
||||
{ pkgs, lib, ... }:
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
|
@ -96,5 +96,13 @@
|
|||
includes = [
|
||||
{ path = ./epita.config; condition = "gitdir:~/git/EPITA/"; }
|
||||
];
|
||||
|
||||
ignores =
|
||||
let
|
||||
readLines = file: lib.splitString "\n" (builtins.readFile file);
|
||||
removeComments = lib.filter (line: line != "" && !(lib.hasPrefix "#" line));
|
||||
getPaths = file: removeComments (readLines file);
|
||||
in
|
||||
getPaths ./default.ignore;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue