{ system ? builtins.currentSystem , config ? {} , pkgs ? import ../.. { inherit system config; } , channelMap ? { # Maps "channels" to packages stable = pkgs.chromium; beta = pkgs.chromiumBeta; dev = pkgs.chromiumDev; ungoogled = pkgs.ungoogled-chromium; chrome-stable = pkgs.google-chrome; chrome-beta = pkgs.google-chrome-beta; chrome-dev = pkgs.google-chrome-dev; } }: with import ../lib/testing-python.nix { inherit system pkgs; }; with pkgs.lib; mapAttrs (channel: chromiumPkg: makeTest rec { name = "chromium-${channel}"; meta = { maintainers = with maintainers; [ aszlig primeos ]; # https://github.com/NixOS/hydra/issues/591#issuecomment-435125621 inherit (chromiumPkg.meta) timeout; }; enableOCR = true; user = "alice"; machine.imports = [ ./common/user-account.nix ./common/x11.nix ]; machine.virtualisation.memorySize = 2047; machine.test-support.displayManager.auto.user = user; machine.environment = { systemPackages = [ chromiumPkg ]; variables."XAUTHORITY" = "/home/alice/.Xauthority"; }; startupHTML = pkgs.writeText "chromium-startup.html" ''