Files
nixos/utils/modules/netdata.nix

31 lines
535 B
Nix

{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
python39
];
services.netdata.configDir."python.d.conf" = pkgs.writeText "python.d.conf" ''
postfix: yes
'';
services.netdata = {
enable = true;
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";
};
};
};
}