nixos-module/collectd: let collectd start after dhcpd4

This commit is contained in:
Astro 2022-06-24 00:04:41 +02:00
parent 10b8faeb23
commit a9e617cd63
1 changed files with 4 additions and 1 deletions

View File

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