1
0

hosts/astatine: Add stack to monitor zte hypermobile 5g

This commit is contained in:
2025-09-08 23:32:42 +02:00
parent 503dca182e
commit e82132b86e
8 changed files with 154 additions and 7 deletions

View File

@@ -0,0 +1,16 @@
{ config, pkgs, lib, ... }:
{
systemd.services."mu5001tool" = {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
DynamicUser = true;
LoadCredential = "zte-hypermobile-5g-password:${config.sops.secrets."zte-hypermobile-5g-password".path}";
};
script = ''
${lib.getExe pkgs.mu5001tool} --password-file ''${CREDENTIALS_DIRECTORY}/zte-hypermobile-5g-password prometheus-exporter --listen-port 9242
'';
};
}