at master 599 B view raw
1{ lib, pkgs, ... }: 2 3{ 4 name = "goatcounter"; 5 6 meta.maintainers = with lib.maintainers; [ bhankas ]; 7 8 nodes.machine = 9 { config, ... }: 10 { 11 virtualisation.memorySize = 2048; 12 13 services.goatcounter = { 14 enable = true; 15 proxy = true; 16 }; 17 }; 18 19 testScript = '' 20 start_all() 21 machine.wait_for_unit("goatcounter.service") 22 # wait for goatcounter to fully come up 23 24 with subtest("goatcounter service starts"): 25 machine.wait_until_succeeds( 26 "curl -sSfL http://localhost:8081/ > /dev/null", 27 timeout=30 28 ) 29 ''; 30}