From 27f1def068cff885c1f2570ec9e5fc1a9796d796 Mon Sep 17 00:00:00 2001 From: Corbin Simpson Date: Thu, 24 Nov 2016 12:47:17 -0800 Subject: [PATCH] nixos/collectd: Fix syntax error on some hostnames. (#20694) Without this, hostnames that e.g. end in digits will cause syntax errors for collectd. --- nixos/modules/services/monitoring/collectd.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/services/monitoring/collectd.nix b/nixos/modules/services/monitoring/collectd.nix index 3c3d83c66ed..01c6fb81766 100644 --- a/nixos/modules/services/monitoring/collectd.nix +++ b/nixos/modules/services/monitoring/collectd.nix @@ -9,7 +9,7 @@ let BaseDir "${cfg.dataDir}" PIDFile "${cfg.pidFile}" AutoLoadPlugin ${if cfg.autoLoadPlugin then "true" else "false"} - Hostname ${config.networking.hostName} + Hostname "${config.networking.hostName}" LoadPlugin syslog