@@ -77,7 +77,7 @@ in {
7777 type = types.bool;
7878 };
7979
80− host = mkOption {
80+ listenAddress = mkOption {
8181 description = "Graphite web frontend listen address.";
8282 default = "127.0.0.1";
8383 type = types.str;
@@ -121,7 +121,7 @@ in {
121121 type = types.listOf types.str;
122122 };
123123
124− host = mkOption {
124+ listenAddress = mkOption {
125125 description = "Graphite web service listen address.";
126126 default = "127.0.0.1";
127127 type = types.str;
@@ -292,7 +292,7 @@ in {
292292 };
293293
294294 graphiteUrl = mkOption {
295− default = "http://${cfg.web.host}:${toString cfg.web.port}";
295+ default = "http://${cfg.web.listenAddress}:${toString cfg.web.port}";
296296 description = "Host where graphite service runs.";
297297 type = types.str;
298298 };
@@ -337,7 +337,7 @@ in {
337337
338338 graphiteUrl = mkOption {
339339 description = "URL to your graphite service.";
340− default = "http://${cfg.web.host}:${toString cfg.web.port}";
340+ default = "http://${cfg.web.listenAddress}:${toString cfg.web.port}";
341341 type = types.str;
342342 };
343343
@@ -452,7 +452,7 @@ in {
452452 serviceConfig = {
453453 ExecStart = ''
454454 ${pkgs.python27Packages.waitress}/bin/waitress-serve \
455− --host=${cfg.web.host} --port=${toString cfg.web.port} \
455+ --host=${cfg.web.listenAddress} --port=${toString cfg.web.port} \
456456 --call django.core.handlers.wsgi:WSGIHandler'';
457457 User = "graphite";
458458 Group = "graphite";
@@ -494,7 +494,7 @@ in {
494494 serviceConfig = {
495495 ExecStart = ''
496496 ${pkgs.python27Packages.waitress}/bin/waitress-serve \
497− --host=${cfg.api.host} --port=${toString cfg.api.port} \
497+ --host=${cfg.api.listenAddress} --port=${toString cfg.api.port} \
498498 graphite_api.app:app
499499 '';
500500 User = "graphite";