nixos/collectd: Fix package option
Commit ed979124ca
was missing some code.
This commit is contained in:
parent
eaed559859
commit
fde23a01b4
@ -100,7 +100,7 @@ in {
|
|||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
|
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
ExecStart = "${pkgs.collectd}/sbin/collectd -C ${conf} -P ${cfg.pidFile}";
|
ExecStart = "${cfg.package}/sbin/collectd -C ${conf} -P ${cfg.pidFile}";
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
PIDFile = cfg.pidFile;
|
PIDFile = cfg.pidFile;
|
||||||
User = optional (cfg.user!="root") cfg.user;
|
User = optional (cfg.user!="root") cfg.user;
|
||||||
|
Loading…
Reference in New Issue
Block a user