4 nixosOk = lib.mkOption {
5 type = lib.types.submoduleWith {
10 # Same but will have bad definition
11 nixosFail = lib.mkOption {
12 type = lib.types.submoduleWith {
18 mergeFail = lib.mkOption {
19 type = lib.types.submoduleWith {
31 mergeFail = lib.mkOption {
32 type = lib.types.submoduleWith {
42 _module.freeformType = lib.types.anything;
47 ./module-class-is-nixos.nix
55 ./module-class-is-nixos.nix
56 ./module-class-is-darwin.nix
64 ./module-class-is-nixos.nix
65 { _file = "foo.nix#darwinModules.default";
73 sub.nixosOk = { _class = "nixos"; };
74 sub.nixosFail = { imports = [ ./module-class-is-darwin.nix ]; };