diff --git a/nixos/modules/services/monitoring/gatus.nix b/nixos/modules/services/monitoring/gatus.nix index 5954f5bd7a20..eb459ddb61ae 100644 --- a/nixos/modules/services/monitoring/gatus.nix +++ b/nixos/modules/services/monitoring/gatus.nix @@ -105,7 +105,8 @@ in config = mkIf cfg.enable { systemd.services.gatus = { description = "Automated developer-oriented status page"; - after = [ "network.target" ]; + after = [ "network-online.target" ]; + requires = [ "network-online.target" ]; wantedBy = [ "multi-user.target" ]; serviceConfig = { diff --git a/nixos/tests/gatus.nix b/nixos/tests/gatus.nix index 5bb146540fba..8f679226f067 100644 --- a/nixos/tests/gatus.nix +++ b/nixos/tests/gatus.nix @@ -29,6 +29,6 @@ testScript = '' machine.wait_for_unit("gatus.service") - machine.succeed("curl -s http://localhost:8080/metrics | grep go_info") + machine.wait_until_succeeds("curl -s http://localhost:8080/metrics | grep go_info", timeout=60) ''; } diff --git a/pkgs/by-name/ga/gatus/package.nix b/pkgs/by-name/ga/gatus/package.nix index e06c56be4ee9..ed68d6f467e5 100644 --- a/pkgs/by-name/ga/gatus/package.nix +++ b/pkgs/by-name/ga/gatus/package.nix @@ -7,16 +7,16 @@ buildGoModule rec { pname = "gatus"; - version = "5.19.0"; + version = "5.23.2"; src = fetchFromGitHub { owner = "TwiN"; repo = "gatus"; rev = "v${version}"; - hash = "sha256-Jw7OdFGSZgxy52fICURc313ONsmI9Qlsf75aS0LUB9s="; + hash = "sha256-b/UQwwyspOKrW9mRoq0zJZ41lNLM+XvGFlpxz+9ZMco="; }; - vendorHash = "sha256-CofmAYsRp0bya+q/eFJkWV9tGfhg37UxDFR9vpCKYls="; + vendorHash = "sha256-jMNsd7AiWG8vhUW9cLs5Ha2wmdw9SHjSDXIypvCKYqk="; subPackages = [ "." ];