at master 709 B view raw
1{ 2 pkgs, 3 lib, 4 ... 5}: 6{ 7 name = "nyxt"; 8 9 meta.maintainers = with lib.maintainers; [ ethancedwards8 ]; 10 11 nodes.machine = { 12 imports = [ 13 # sets up x11 with autologin 14 ./common/x11.nix 15 ]; 16 17 environment.systemPackages = with pkgs; [ nyxt ]; 18 19 # not enough memory for the allocation 20 virtualisation.memorySize = 2048; 21 }; 22 23 enableOCR = true; 24 25 testScript = 26 { nodes, ... }: 27 '' 28 start_all() 29 machine.wait_for_x() 30 31 with subtest("Wait until Nyxt has finished loading the Valgrind docs page"): 32 machine.execute("xterm -e 'nyxt file://${pkgs.valgrind.doc}/share/doc/valgrind/html/index.html' >&2 &"); 33 machine.wait_for_window("nyxt") 34 ''; 35}