mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-10 03:23:29 +03:00
34 lines
522 B
Nix
34 lines
522 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;
|
||
|
};
|
||
|
}
|