refactor(dotfiles): inline registry evaluation
This commit is contained in:
@@ -12,16 +12,13 @@ let
|
|||||||
# NOLINT(single_use_binding)
|
# NOLINT(single_use_binding)
|
||||||
mkRegistry =
|
mkRegistry =
|
||||||
path:
|
path:
|
||||||
let
|
(lib.evalModules {
|
||||||
evaluated = lib.evalModules {
|
specialArgs = { inherit util; };
|
||||||
specialArgs = { inherit util; };
|
modules = [
|
||||||
modules = [
|
(import ./registry/schema.nix { inherit lib; })
|
||||||
(import ./registry/schema.nix { inherit lib; })
|
path
|
||||||
path
|
];
|
||||||
];
|
}).config;
|
||||||
};
|
|
||||||
in
|
|
||||||
evaluated.config;
|
|
||||||
|
|
||||||
data = validate (
|
data = validate (
|
||||||
lib.mapAttrs (
|
lib.mapAttrs (
|
||||||
|
|||||||
Reference in New Issue
Block a user