Skip to content

Commit

Permalink
nixos/nezha-agent: add extraFlags
Browse files Browse the repository at this point in the history
  • Loading branch information
Moraxyc committed Oct 28, 2024
1 parent 4c6a66b commit 68b122d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nixos/modules/services/monitoring/nezha-agent.nix
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,14 @@ in
Address to the dashboard
'';
};
extraFlags = lib.mkOption {
type = lib.types.listOf lib.types.str;
default = [ ];
example = [ "--gpu" ];
description = ''
Extra command-line flags passed to nezha-agent.
'';
};
};
};

Expand Down Expand Up @@ -125,6 +133,7 @@ in
++ lib.optional cfg.gpu "--gpu"
++ lib.optional cfg.temperature "--temperature"
++ lib.optional cfg.useIPv6CountryCode "--use-ipv6-countrycode"
++ cfg.extraFlags
);
wantedBy = [ "multi-user.target" ];
};
Expand Down

0 comments on commit 68b122d

Please sign in to comment.