hosts/astatine: Add stack to monitor zte hypermobile 5g
This commit is contained in:
16
hosts/astatine/mu5001tool.nix
Normal file
16
hosts/astatine/mu5001tool.nix
Normal 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
|
||||
'';
|
||||
};
|
||||
|
||||
}
|
Reference in New Issue
Block a user