3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
20 lines
466 B
Nix
20 lines
466 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (lib) types mkOption setDefaultModuleLocation evalModules;
|
|
inherit (types) deferredModule lazyAttrsOf submodule str raw enum;
|
|
in
|
|
{
|
|
options = {
|
|
deferred = mkOption {
|
|
type = deferredModule;
|
|
};
|
|
result = mkOption {
|
|
default = (evalModules { modules = [ config.deferred ]; }).config.result;
|
|
};
|
|
};
|
|
config = {
|
|
deferred = { ... }:
|
|
# this should be an attrset, so this fails
|
|
true;
|
|
};
|
|
}
|