rico0: start blocky after network is ready

This commit is contained in:
Adithya 2024-07-14 18:16:40 +05:30
parent c1cb4ca433
commit 23779c1331
Signed by: adtya
GPG key ID: B8857BFBA2C47B9C

View file

@ -9,14 +9,13 @@ _: {
]; ];
}; };
}; };
systemd.services.blocky.unitConfig.Requires = "wireguard-wg0.service"; systemd.services.blocky.unitConfig.After = [ "network-online.target" "wireguard-wg0.service" ];
systemd.services.blocky.unitConfig.After = [ "wireguard-wg0.service" ];
services.blocky = { services.blocky = {
enable = true; enable = true;
settings = { settings = {
bootstrapDns = [ "tcp+udp:1.1.1.1" ]; bootstrapDns = [ "tcp+udp:1.1.1.1" ];
upstreams = { upstreams = {
init.strategy = "failOnError"; init.strategy = "blocking";
groups = { groups = {
default = [ default = [
# Google # Google