mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
28 lines
438 B
Nix
28 lines
438 B
Nix
{ config, lib, ... }:
|
|
let
|
|
inherit (lib)
|
|
types
|
|
mkOption
|
|
evalModules
|
|
;
|
|
inherit (types)
|
|
deferredModule
|
|
;
|
|
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;
|
|
};
|
|
}
|