machines: name: Fix blocky upstream timeout on boot

Although blocky starts after unbound, it still takes a few seconds for
it be ready - which blocky reliably races such that it errors out on
resolving it's upstream (aka. unbound).

Signed-off-by: Christoph Heiss <christoph@c8h4.io>
This commit is contained in:
Christoph Heiss 2023-07-22 23:04:42 +02:00
parent 8a5b3dc60b
commit d9b4fb8cb2
Signed by: c8h4
GPG key ID: 1538094429952F86

View file

@ -1,4 +1,4 @@
{ lib, my, ... }:
{ lib, my, pkgs, ... }:
{
imports =
@ -31,5 +31,6 @@
systemd.services.blocky = {
requires = [ "unbound.service" ];
after = [ "unbound.service" ];
preStart = "${pkgs.coreutils-full}/bin/sleep 10";
};
}