From db068ba994007c48bd2a9f180df00338b0395a62 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 17 May 2026 14:06:58 +0000 Subject: [PATCH] Harden flatpak-repo systemd service retries Agent-Logs-Url: https://github.com/naturallaw777/staging_alpha/sessions/42ce6628-372d-4bd8-82c5-b10097fc8003 Co-authored-by: naturallaw777 <99053422+naturallaw777@users.noreply.github.com> --- configuration.nix | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/configuration.nix b/configuration.nix index 8cfc092..8042626 100644 --- a/configuration.nix +++ b/configuration.nix @@ -104,9 +104,19 @@ services.flatpak.enable = true; systemd.services.flatpak-repo = { wantedBy = [ "multi-user.target" ]; - after = [ "network-online.target" ]; - wants = [ "network-online.target" ]; + after = [ "network-online.target" "nss-lookup.target" ]; + wants = [ "network-online.target" "nss-lookup.target" ]; path = [ pkgs.flatpak ]; + serviceConfig = { + Type = "oneshot"; + RemainAfterExit = true; + Restart = "on-failure"; + RestartSec = "15s"; + }; + unitConfig = { + StartLimitIntervalSec = 120; + StartLimitBurst = 5; + }; script = '' flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo '';