summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2015-12-24 00:20:56 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2015-12-24 00:20:56 +0100
commit19aed49163da022eb0d7b6820bf19097fefa2dc3 (patch)
treeae52648d478daaf5f98387edd93233a1c9efcd0f /nixos
parent8b9f3c8c35eb3d8c85cf168618b264c76bca687b (diff)
downloadnixpkgs-19aed49163da022eb0d7b6820bf19097fefa2dc3.tar
nixpkgs-19aed49163da022eb0d7b6820bf19097fefa2dc3.tar.gz
nixpkgs-19aed49163da022eb0d7b6820bf19097fefa2dc3.tar.bz2
nixpkgs-19aed49163da022eb0d7b6820bf19097fefa2dc3.tar.lz
nixpkgs-19aed49163da022eb0d7b6820bf19097fefa2dc3.tar.xz
nixpkgs-19aed49163da022eb0d7b6820bf19097fefa2dc3.tar.zst
nixpkgs-19aed49163da022eb0d7b6820bf19097fefa2dc3.zip
nixos/statsd: rename 'host' to 'listenAddress'
More descriptive option name.
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/rename.nix1
-rw-r--r--nixos/modules/services/monitoring/statsd.nix4
2 files changed, 3 insertions, 2 deletions
diff --git a/nixos/modules/rename.nix b/nixos/modules/rename.nix
index 88d33aac7d0..87aa25f883f 100644
--- a/nixos/modules/rename.nix
+++ b/nixos/modules/rename.nix
@@ -20,6 +20,7 @@ with lib;
     (mkRenamedOptionModule [ "services" "graphite" "web" "host" ] [ "services" "graphite" "web" "listenAddress" ])
     (mkRenamedOptionModule [ "services" "mpd" "network" "host" ] [ "services" "mpd" "network" "listenAddress" ])
     (mkRenamedOptionModule [ "services" "neo4j" "host" ] [ "services" "neo4j" "listenAddress" ])
+    (mkRenamedOptionModule [ "services" "statsd" "host" ] [ "services" "statsd" "listenAddress" ])
     (mkRenamedOptionModule [ "services" "subsonic" "host" ] [ "services" "subsonic" "listenAddress" ])
 
     # Old Grub-related options.
diff --git a/nixos/modules/services/monitoring/statsd.nix b/nixos/modules/services/monitoring/statsd.nix
index 39fabc27d6c..df2adb9f276 100644
--- a/nixos/modules/services/monitoring/statsd.nix
+++ b/nixos/modules/services/monitoring/statsd.nix
@@ -11,7 +11,7 @@ let
 
   configFile = pkgs.writeText "statsd.conf" ''
     {
-      address: "${cfg.host}",
+      address: "${cfg.listenAddress}",
       port: "${toString cfg.port}",
       mgmt_address: "${cfg.mgmt_address}",
       mgmt_port: "${toString cfg.mgmt_port}",
@@ -48,7 +48,7 @@ in
       type = types.bool;
     };
 
-    host = mkOption {
+    listenAddress = mkOption {
       description = "Address that statsd listens on over UDP";
       default = "127.0.0.1";
       type = types.str;