1{
2 config,
3 options,
4 lib,
5 ...
6}:
7let
8 inherit (lib) mkIf mkOption types;
9in
10{
11 # This needs options.warnings and options.assertions, which we don't have (yet?).
12 # imports = [
13 # (lib.mkRenamedOptionModule [ "machine" ] [ "nodes" "machine" ])
14 # (lib.mkRemovedOptionModule [ "minimal" ] "The minimal kernel module was removed as it was broken and not used any more in nixpkgs.")
15 # ];
16
17 options = {
18 machine = mkOption {
19 internal = true;
20 type = types.raw;
21 };
22 };
23
24 config = {
25 nodes = mkIf options.machine.isDefined (
26 lib.warn
27 "In test `${config.name}': The `machine' attribute in NixOS tests (pkgs.nixosTest / make-test-python.nix / testing-python.nix / makeTest) is deprecated. Please set the equivalent `nodes.machine'."
28 { inherit (config) machine; }
29 );
30 };
31}