diff options
Diffstat (limited to 'hosts/omega-relay')
| -rw-r--r-- | hosts/omega-relay/default.nix | 66 |
1 files changed, 38 insertions, 28 deletions
diff --git a/hosts/omega-relay/default.nix b/hosts/omega-relay/default.nix index 2e528ae..62bbab6 100644 --- a/hosts/omega-relay/default.nix +++ b/hosts/omega-relay/default.nix @@ -215,41 +215,51 @@ }; networking.hostName = "omega-relay"; - users.groups.unbound = {}; + users.groups.unbound = { }; services.unbound = { - enable = true; + enable = true; group = "unbound"; - localControlSocketPath = "/run/unbound/unbound.ctl"; + localControlSocketPath = "/run/unbound/unbound.ctl"; settings = { - server = let lan_domains = ["home" "home.arpa" "wilkuu" "lan"]; in { - qname-minimisation = true; - private-domain = lan_domains; - domain-insecure = lan_domains; - unblock-lan-zones = true; - insecure-lan-zones = true; - }; + server = + let + lan_domains = [ + "home" + "home.arpa" + "wilkuu" + "lan" + ]; + in + { + qname-minimisation = true; + private-domain = lan_domains; + domain-insecure = lan_domains; + unblock-lan-zones = true; + insecure-lan-zones = true; + }; forward-zone = [ - # { - # name = "home.wilkuu.xyz."; + # { + # name = "home.wilkuu.xyz."; # TODO: Maybe move the responsibility of home zones to omega-relay - # forward-addr = [ - # "192.168.88.1" - # ]; - # } - { - name = "."; - forward-tls-upstream = true; - forward-addr = [ - "1.1.1.1@853#cloudflare-dns.com" - "1.0.0.1@853#cloudflare-dns.com" - "8.8.8.8@853#dns.google" - "8.8.4.4@853#dns.google" - ]; - }]; + # forward-addr = [ + # "192.168.88.1" + # ]; + # } + { + name = "."; + forward-tls-upstream = true; + forward-addr = [ + "1.1.1.1@853#cloudflare-dns.com" + "1.0.0.1@853#cloudflare-dns.com" + "8.8.8.8@853#dns.google" + "8.8.4.4@853#dns.google" + ]; + } + ]; - }; - }; + }; + }; services.prometheus.exporters.unbound = { enable = true; |
