diff --git a/home/git/default.nix b/home/git/default.nix index 3abb83c..da5efae 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -123,8 +123,10 @@ in ignores = let - readLines = file: lib.splitString "\n" (builtins.readFile file); - removeComments = lib.filter (line: line != "" && !(lib.hasPrefix "#" line)); + inherit (builtins) readFile; + inherit (lib) filter hasPrefix splitString; + readLines = file: splitString "\n" (readFile file); + removeComments = filter (line: line != "" && !(hasPrefix "#" line)); getPaths = file: removeComments (readLines file); in getPaths ./default.ignore;