31 lines
536 B
Nix
31 lines
536 B
Nix
{ config, pkgs, ... }:
|
|
{
|
|
environment.systemPackages = with pkgs; [
|
|
python312
|
|
];
|
|
|
|
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";
|
|
};
|
|
};
|
|
};
|
|
}
|