at master 430 B view raw
1{ pkgs, ... }: 2{ 3 name = "metabase"; 4 meta = with pkgs.lib.maintainers; { 5 maintainers = [ mmahut ]; 6 }; 7 8 nodes = { 9 machine = 10 { ... }: 11 { 12 services.metabase.enable = true; 13 }; 14 }; 15 16 testScript = '' 17 start_all() 18 machine.wait_for_unit("metabase.service") 19 machine.wait_for_open_port(3000) 20 machine.wait_until_succeeds("curl -fL http://localhost:3000/setup | grep Metabase") 21 ''; 22}