nixos-module/collectd: fix

This commit is contained in:
Astro 2022-06-24 00:05:54 +02:00
parent a9e617cd63
commit 675c549095
1 changed files with 2 additions and 2 deletions

View File

@ -108,8 +108,8 @@ in
}) ];
systemd.services.collectd = lib.mkIf {
systemd.services.collectd = lib.mkIf config.services.dhcpd4.enable {
after = [ "dhcpd4.service" ];
serviceConfig.StateDirectory = config.services.dhcpd4.enable "dhcpd4";
serviceConfig.StateDirectory = "dhcpd4";
};
}