git.iko.soy/typeable/nixpkgs
on master help sign in
nixos/modules/services/monitoring/graphite.nix: strip trailing whitespace
415f41bPeter Simons
nixos/modules/services/monitoring/graphite.nix+6−6
@@ -306,7 +306,7 @@ in {
306 example = literalExample ''
306 example = literalExample ''
307 {
307 {
308 GRAPHITE_USERNAME = "user";
308 GRAPHITE_USERNAME = "user";
309− GRAPHITE_PASSWORD = "pass";
309+ GRAPHITE_PASSWORD = "pass";
310 }
310 }
311 '';
311 '';
312 };
312 };
@@ -344,7 +344,7 @@ in {
344 name: Test
344 name: Test
345 '';
345 '';
346 example = literalExample ''
346 example = literalExample ''
347− pushbullet_key: pushbullet_api_key
347+ pushbullet_key: pushbullet_api_key
348 alerts:
348 alerts:
349 - target: stats.seatgeek.app.deal_quality.venue_info_cache.hit
349 - target: stats.seatgeek.app.deal_quality.venue_info_cache.hit
350 warning: .5
350 warning: .5
@@ -456,7 +456,7 @@ in {
456 environment.systemPackages = [ pkgs.python27Packages.graphite_web ];
456 environment.systemPackages = [ pkgs.python27Packages.graphite_web ];
457 })
457 })
458
458
459− (mkIf cfg.api.enable {
459+ (mkIf cfg.api.enable {
460 systemd.services.graphiteApi = {
460 systemd.services.graphiteApi = {
461 description = "Graphite Api Interface";
461 description = "Graphite Api Interface";
462 wantedBy = [ "multi-user.target" ];
462 wantedBy = [ "multi-user.target" ];
@@ -472,7 +472,7 @@ in {
472 ExecStart = ''
472 ExecStart = ''
473 ${pkgs.python27Packages.waitress}/bin/waitress-serve \
473 ${pkgs.python27Packages.waitress}/bin/waitress-serve \
474 --host=${cfg.api.host} --port=${toString cfg.api.port} \
474 --host=${cfg.api.host} --port=${toString cfg.api.port} \
475− graphite_api.app:app
475+ graphite_api.app:app
476 '';
476 '';
477 User = "graphite";
477 User = "graphite";
478 Group = "graphite";
478 Group = "graphite";
@@ -501,7 +501,7 @@ in {
501 ExecStart = "${pkgs.seyren}/bin/seyren -httpPort ${toString cfg.seyren.port}";
501 ExecStart = "${pkgs.seyren}/bin/seyren -httpPort ${toString cfg.seyren.port}";
502 WorkingDirectory = dataDir;
502 WorkingDirectory = dataDir;
503 User = "graphite";
503 User = "graphite";
504− Group = "graphite";
504+ Group = "graphite";
505 };
505 };
506 preStart = ''
506 preStart = ''
507 if ! test -e ${dataDir}/db-created; then
507 if ! test -e ${dataDir}/db-created; then
@@ -526,7 +526,7 @@ in {
526 serviceConfig = {
526 serviceConfig = {
527 ExecStart = "${pkgs.pythonPackages.graphite_pager}/bin/graphite-pager --config ${pagerConfig}";
527 ExecStart = "${pkgs.pythonPackages.graphite_pager}/bin/graphite-pager --config ${pagerConfig}";
528 User = "graphite";
528 User = "graphite";
529− Group = "graphite";
529+ Group = "graphite";
530 };
530 };
531 };
531 };
532
532