36 lines
688 B
Nix
36 lines
688 B
Nix
{ lib, ... }: {
|
|
config = {
|
|
_module.freeformType = lib.types.anything;
|
|
ok =
|
|
lib.evalModules {
|
|
class = "nixos";
|
|
modules = [
|
|
./module-class-is-nixos.nix
|
|
];
|
|
};
|
|
|
|
fail =
|
|
lib.evalModules {
|
|
class = "nixos";
|
|
modules = [
|
|
./module-class-is-nixos.nix
|
|
./module-class-is-darwin.nix
|
|
];
|
|
};
|
|
|
|
fail-anon =
|
|
lib.evalModules {
|
|
class = "nixos";
|
|
modules = [
|
|
./module-class-is-nixos.nix
|
|
{ _file = "foo.nix#darwinModules.default";
|
|
class = "darwin";
|
|
config = {};
|
|
imports = [];
|
|
}
|
|
];
|
|
};
|
|
|
|
};
|
|
}
|