at 24.11-pre 823 B view raw
1{ config, options, lib, ... }: 2let 3 inherit (lib) mkIf mkOption types; 4in 5{ 6 # This needs options.warnings and options.assertions, which we don't have (yet?). 7 # imports = [ 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.") 10 # ]; 11 12 options = { 13 machine = mkOption { 14 internal = true; 15 type = types.raw; 16 }; 17 }; 18 19 config = { 20 nodes = mkIf options.machine.isDefined ( 21 lib.warn 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; } 24 ); 25 }; 26}