lib: Remove lib.deferredModuleWith fallback

The `lib.deferredModuleWith or (...)` pattern never matched because
`lib.deferredModuleWith` doesn't exist - only `lib.types.deferredModuleWith`.
This was always using flake-parts' own implementation.
This commit is contained in:
Robert Hensing 2026-01-05 10:18:02 +01:00
parent bd4b9dd600
commit ef399e1230

View file

@ -33,7 +33,7 @@ let
else maybeFlake ? inputs && maybeFlake ? outputs && maybeFlake ? sourceInfo; else maybeFlake ? inputs && maybeFlake ? outputs && maybeFlake ? sourceInfo;
# Polyfill https://github.com/NixOS/nixpkgs/pull/163617 # Polyfill https://github.com/NixOS/nixpkgs/pull/163617
deferredModuleWith = lib.deferredModuleWith or ( deferredModuleWith =
attrs@{ staticModules ? [ ] }: mkOptionType { attrs@{ staticModules ? [ ] }: mkOptionType {
name = "deferredModule"; name = "deferredModule";
description = "module"; description = "module";
@ -54,8 +54,7 @@ let
staticModules = lhs.staticModules ++ rhs.staticModules; staticModules = lhs.staticModules ++ rhs.staticModules;
}; };
}; };
} };
);
errorExample = '' errorExample = ''
For example: For example: