diff options
author | Nick Cao | 2024-06-29 09:02:54 -0400 |
---|---|---|
committer | GitHub | 2024-06-29 09:02:54 -0400 |
commit | 690518e96630dc350aef116f89c1b9f29c3bb9bc (patch) | |
tree | d5614b7c0dab16c09bf612e65f7143fa87222e54 /nixos | |
parent | 7d6f9e5a0e742045a7932dc50e61173d9ff7411a (diff) | |
parent | f852b38c42e8316bde820f375fc21a9078148de6 (diff) |
Merge pull request #321982 from Moraxyc/update-nezha-agent
nezha-agent: 0.17.0 -> 0.17.2
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/services/monitoring/nezha-agent.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/nixos/modules/services/monitoring/nezha-agent.nix b/nixos/modules/services/monitoring/nezha-agent.nix index 8312a425d28f..7ebbc7f2f329 100644 --- a/nixos/modules/services/monitoring/nezha-agent.nix +++ b/nixos/modules/services/monitoring/nezha-agent.nix @@ -24,6 +24,13 @@ in Enable SSL/TLS encryption. ''; }; + gpu = lib.mkOption { + type = lib.types.bool; + default = true; + description = '' + Enable GPU monitoring. + ''; + }; disableCommandExecute = lib.mkOption { type = lib.types.bool; default = true; @@ -46,7 +53,12 @@ in ''; }; reportDelay = lib.mkOption { - type = lib.types.enum [ 1 2 3 4 ]; + type = lib.types.enum [ + 1 + 2 + 3 + 4 + ]; default = 1; description = '' The interval between system status reportings. @@ -96,6 +108,7 @@ in ++ lib.optional cfg.skipConnection "--skip-conn" ++ lib.optional cfg.skipProcess "--skip-procs" ++ lib.optional cfg.tls "--tls" + ++ lib.optional cfg.gpu "--gpu" ); wantedBy = [ "multi-user.target" ]; }; |