Merge pull request #72187 from Izorkin/netdata-fix

nixos/netdata: add which to path
This commit is contained in:
Renaud 2019-11-03 14:06:51 +01:00 committed by GitHub
commit 266d3dd7f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -138,7 +138,7 @@ in {
description = "Real time performance monitoring"; description = "Real time performance monitoring";
after = [ "network.target" ]; after = [ "network.target" ];
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
path = (with pkgs; [ gawk curl ]) ++ lib.optional cfg.python.enable path = (with pkgs; [ curl gawk which ]) ++ lib.optional cfg.python.enable
(pkgs.python3.withPackages cfg.python.extraPackages); (pkgs.python3.withPackages cfg.python.extraPackages);
serviceConfig = { serviceConfig = {
Environment="PYTHONPATH=${pkgs.netdata}/libexec/netdata/python.d/python_modules"; Environment="PYTHONPATH=${pkgs.netdata}/libexec/netdata/python.d/python_modules";