nixpkgs/lib/tests/modules/import-error-submodule.nix
2025-04-15 13:42:29 +02:00

19 lines
329 B
Nix

{ lib, ... }:
let
myconf = lib.evalModules { modules = [ { } ]; };
in
{
options.foo = lib.mkOption {
type = lib.types.submodule { };
default = { };
};
config.foo =
{ ... }:
{
imports = [
# error, like `import-configuration.nix`, but in a submodule this time
myconf
];
};
}