0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-17 07:30:21 +03:00
nixpkgs/lib/tests/modules/import-error-submodule.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
329 B
Nix
Raw Normal View History

{ 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
];
};
}