nixos/netadata: add required packages

This commit is contained in:
Izorkin 2021-05-04 19:20:09 +03:00
parent d5b9c17485
commit 9aad915539
No known key found for this signature in database
GPG key ID: 1436C1B3F3679F09

View file

@ -149,8 +149,9 @@ in {
description = "Real time performance monitoring";
after = [ "network.target" ];
wantedBy = [ "multi-user.target" ];
path = (with pkgs; [ curl gawk which ]) ++ lib.optional cfg.python.enable
(pkgs.python3.withPackages cfg.python.extraPackages);
path = (with pkgs; [ curl gawk iproute2 which ])
++ lib.optional cfg.python.enable (pkgs.python3.withPackages cfg.python.extraPackages)
++ lib.optional config.virtualisation.libvirtd.enable (config.virtualisation.libvirtd.package);
environment = {
PYTHONPATH = "${cfg.package}/libexec/netdata/python.d/python_modules";
} // lib.optionalAttrs (!cfg.enableAnalyticsReporting) {