nixos/collectd: Fix package option

Commit ed979124ca was missing some code.
This commit is contained in:
Franz Pletz 2016-02-28 14:54:25 +01:00
parent eaed559859
commit fde23a01b4

View File

@ -100,7 +100,7 @@ in {
wantedBy = [ "multi-user.target" ];
serviceConfig = {
ExecStart = "${pkgs.collectd}/sbin/collectd -C ${conf} -P ${cfg.pidFile}";
ExecStart = "${cfg.package}/sbin/collectd -C ${conf} -P ${cfg.pidFile}";
Type = "forking";
PIDFile = cfg.pidFile;
User = optional (cfg.user!="root") cfg.user;