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:
13
flake.nix
13
flake.nix
@ -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 = [
|
||||
|
Reference in New Issue
Block a user