tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
nixos/graphite: add package option to graphiteApi
Jaka Hudoklin
11 years ago
1cdb6cfb
4d261e64
+7
-1
1 changed file
expand all
collapse all
unified
split
nixos
modules
services
monitoring
graphite.nix
+7
-1
nixos/modules/services/monitoring/graphite.nix
···
116
type = types.int;
117
};
118
0
0
0
0
0
0
119
extraConfig = mkOption {
120
description = "Extra configuration for graphite api.";
121
default = ''
···
398
after = [ "network-interfaces.target" ];
399
environment = {
400
PYTHONPATH =
401
-
"${pkgs.python27Packages.graphite_api}/lib/python2.7/site-packages:" +
402
concatMapStringsSep ":" (f: f + "/lib/python2.7/site-packages") cfg.api.finders;
403
GRAPHITE_API_CONFIG = graphiteApiConfig;
404
LD_LIBRARY_PATH = "${pkgs.cairo}/lib";
···
116
type = types.int;
117
};
118
119
+
package = mkOption {
120
+
description = "Package to use for graphite api.";
121
+
default = pkgs.python27Packages.graphite_api;
122
+
type = types.package;
123
+
};
124
+
125
extraConfig = mkOption {
126
description = "Extra configuration for graphite api.";
127
default = ''
···
404
after = [ "network-interfaces.target" ];
405
environment = {
406
PYTHONPATH =
407
+
"${cfg.api.package}/lib/python2.7/site-packages:" +
408
concatMapStringsSep ":" (f: f + "/lib/python2.7/site-packages") cfg.api.finders;
409
GRAPHITE_API_CONFIG = graphiteApiConfig;
410
LD_LIBRARY_PATH = "${pkgs.cairo}/lib";