Files
nixos/utils/modules/netdata.nix
2024-07-08 17:36:11 +02:00

37 lines
762 B
Nix

{ config, pkgs, ... }:
let
unstable = import (fetchTarball https://nixos.org/channels/nixos-unstable/nixexprs.tar.xz) {
config = { allowUnfree = true; };
};
in
{
services.netdata.configDir."python.d.conf" = pkgs.writeText "python.d.conf" ''
postfix: yes
'';
sops.secrets.netdata-claim-token = { };
services.netdata = {
enable = true;
package = unstable.netdata;
# claimTokenFile = config.sops.secrets.netdata-claim-token.path;
python.enable = true;
config = {
global = {
# uncomment to reduce memory to 32 MB
"page cache size" = 32;
# update interval
"update every" = 15;
};
ml = {
# enable machine learning
"enabled" = "yes";
};
};
};
}