|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
{ lib, ... }: |
|
|
|
|
let |
|
|
|
|
inherit (lib) types mkOption setDefaultModuleLocation; |
|
|
|
|
inherit (types) deferredModule lazyAttrsOf submodule str raw; |
|
|
|
|
inherit (types) deferredModule lazyAttrsOf submodule str raw enum; |
|
|
|
|
in |
|
|
|
|
{ |
|
|
|
|
imports = [ |
|
|
|
@ -28,6 +28,7 @@ in |
|
|
|
|
_file = "default-1.nix"; |
|
|
|
|
default = { config, ... }: { |
|
|
|
|
options.settingsDict = lib.mkOption { type = lazyAttrsOf str; default = {}; }; |
|
|
|
|
options.bottom = lib.mkOption { type = enum []; }; |
|
|
|
|
}; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -43,6 +44,11 @@ in |
|
|
|
|
nodes.foo.settingsDict.b = "beta"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
_file = "the-file-that-contains-the-bad-config.nix"; |
|
|
|
|
default.bottom = "bogus"; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
{ |
|
|
|
|
_file = "nodes-foo-c-is-a.nix"; |
|
|
|
|
nodes.foo = { config, ... }: { |
|
|
|
|