mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-14 06:00:33 +03:00
nixos/nezha-agent: add gpu monitoring option
This commit is contained in:
parent
76ff8beba8
commit
f852b38c42
1 changed files with 14 additions and 1 deletions
|
@ -24,6 +24,13 @@ in
|
||||||
Enable SSL/TLS encryption.
|
Enable SSL/TLS encryption.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
gpu = lib.mkOption {
|
||||||
|
type = lib.types.bool;
|
||||||
|
default = true;
|
||||||
|
description = ''
|
||||||
|
Enable GPU monitoring.
|
||||||
|
'';
|
||||||
|
};
|
||||||
disableCommandExecute = lib.mkOption {
|
disableCommandExecute = lib.mkOption {
|
||||||
type = lib.types.bool;
|
type = lib.types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
@ -46,7 +53,12 @@ in
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
reportDelay = lib.mkOption {
|
reportDelay = lib.mkOption {
|
||||||
type = lib.types.enum [ 1 2 3 4 ];
|
type = lib.types.enum [
|
||||||
|
1
|
||||||
|
2
|
||||||
|
3
|
||||||
|
4
|
||||||
|
];
|
||||||
default = 1;
|
default = 1;
|
||||||
description = ''
|
description = ''
|
||||||
The interval between system status reportings.
|
The interval between system status reportings.
|
||||||
|
@ -96,6 +108,7 @@ in
|
||||||
++ lib.optional cfg.skipConnection "--skip-conn"
|
++ lib.optional cfg.skipConnection "--skip-conn"
|
||||||
++ lib.optional cfg.skipProcess "--skip-procs"
|
++ lib.optional cfg.skipProcess "--skip-procs"
|
||||||
++ lib.optional cfg.tls "--tls"
|
++ lib.optional cfg.tls "--tls"
|
||||||
|
++ lib.optional cfg.gpu "--gpu"
|
||||||
);
|
);
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue