2022-10-24 12:30:19 +00:00
|
|
|
{ lib, ... }: {
|
|
|
|
config = {
|
|
|
|
_module.freeformType = lib.types.anything;
|
|
|
|
ok =
|
|
|
|
lib.evalModules {
|
|
|
|
specialArgs.class = "nixos";
|
|
|
|
modules = [
|
|
|
|
./module-class-is-nixos.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
fail =
|
|
|
|
lib.evalModules {
|
|
|
|
specialArgs.class = "nixos";
|
|
|
|
modules = [
|
|
|
|
./module-class-is-nixos.nix
|
|
|
|
./module-class-is-darwin.nix
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
fail-anon =
|
|
|
|
lib.evalModules {
|
|
|
|
specialArgs.class = "nixos";
|
|
|
|
modules = [
|
|
|
|
./module-class-is-nixos.nix
|
|
|
|
{ _file = "foo.nix#darwinModules.default";
|
|
|
|
class = "darwin";
|
2023-04-10 15:26:25 +00:00
|
|
|
config = {};
|
2022-10-24 12:30:19 +00:00
|
|
|
imports = [];
|
|
|
|
}
|
|
|
|
];
|
|
|
|
};
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|