remove nom.patch, change filterSource to path

nom.patch gets pulled in to the modules unless filtering is set up, but
we're not building custom nixos-rebuild anymore (and haven't for a
while)

migrates to builtins.path over builtins.filterSource since the semantics
seem a bit nicer

Removes all the filtering on the directory as we likely don't need it

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-05-19 02:24:00 -04:00
committed by Alice Huston
parent 0ddf01baef
commit 6b5dda1f39
2 changed files with 2 additions and 71 deletions

View File

@ -136,17 +136,8 @@
forEachSystem = lib.genAttrs systems;
# filter out all non-nix files and returns the nix-store path
# (ie. git configs, git refs, etc)
#
# used for module imports and system search
src = builtins.filterSource (
path: type:
type == "directory"
|| lib.hasSuffix ".nix"
|| lib.hasSuffix ".yaml"
|| lib.hasSuffix ".yml" (baseNameOf path)
) ./.;
# gets the base path of the repo
src = builtins.path { path = ./.; };
config = {
repos = [