1 { config, options, lib, ... }:
3 inherit (lib) mkIf mkOption types;
6 # This needs options.warnings and options.assertions, which we don't have (yet?).
8 # (lib.mkRenamedOptionModule [ "machine" ] [ "nodes" "machine" ])
9 # (lib.mkRemovedOptionModule [ "minimal" ] "The minimal kernel module was removed as it was broken and not used any more in nixpkgs.")
20 nodes = mkIf options.machine.isDefined (
22 "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'."
23 { inherit (config) machine; }