1 { config, options, lib, ... }:
3 inherit (lib) mkIf mkOption types;
6 # This needs options.warnings, which we don't have (yet?).
8 # (lib.mkRenamedOptionModule [ "machine" ] [ "nodes" "machine" ])
19 nodes = mkIf options.machine.isDefined (
21 "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'."
22 { inherit (config) machine; }