From 00a7eee2afcd2527078ee142950d4ce0965e6a30 Mon Sep 17 00:00:00 2001 From: clerie Date: Thu, 11 Sep 2025 12:39:04 +0200 Subject: [PATCH] hosts/astatine: Update mu5001tool and restart on failure --- flake.lock | 8 ++++---- hosts/astatine/mu5001tool.nix | 2 ++ 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 590bcc3..5944a2e 100644 --- a/flake.lock +++ b/flake.lock @@ -411,11 +411,11 @@ ] }, "locked": { - "lastModified": 1757364612, - "narHash": "sha256-6MSqlWHH15qbWbvS9b6OTGdtIkW6GVb9SSLkEYAMdDw=", + "lastModified": 1757584432, + "narHash": "sha256-zCCJKJDaX4w7izqMym+Z2qkcYr8aUo2d/Sgmn7jVQMA=", "ref": "refs/heads/main", - "rev": "cb758d9bc97baa11e80a048e666c99986cabed43", - "revCount": 6, + "rev": "5888a1309e5a3fe73ea6801f5c37fac87c796694", + "revCount": 7, "type": "git", "url": "https://git.clerie.de/clerie/mu5001tool.git" }, diff --git a/hosts/astatine/mu5001tool.nix b/hosts/astatine/mu5001tool.nix index 273103f..ada4072 100644 --- a/hosts/astatine/mu5001tool.nix +++ b/hosts/astatine/mu5001tool.nix @@ -7,6 +7,8 @@ serviceConfig = { DynamicUser = true; LoadCredential = "zte-hypermobile-5g-password:${config.sops.secrets."zte-hypermobile-5g-password".path}"; + Restart = "on-failure"; + RestartSec = "15s"; }; script = '' ${lib.getExe pkgs.mu5001tool} --password-file ''${CREDENTIALS_DIRECTORY}/zte-hypermobile-5g-password prometheus-exporter --listen-port 9242