From 478002766e63e58b5081ad6ce4a759346d22fdc6 Mon Sep 17 00:00:00 2001 From: Colin Date: Tue, 21 Feb 2023 11:38:27 +0000 Subject: [PATCH] trust-dns: fetch lan IP to listen on from config instead of repeating myself --- hosts/by-name/servo/services/trust-dns.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hosts/by-name/servo/services/trust-dns.nix b/hosts/by-name/servo/services/trust-dns.nix index d7211e65..8e61eaa8 100644 --- a/hosts/by-name/servo/services/trust-dns.nix +++ b/hosts/by-name/servo/services/trust-dns.nix @@ -6,7 +6,7 @@ sane.services.trust-dns.listenAddrsIPv4 = [ # specify each address explicitly, instead of using "*". # this ensures responses are sent from the address at which the request was received. - "192.168.15.28" # TODO: fetch IP via `config` + config.sane.hosts.by-name."servo".lan-ip "10.0.1.5" ]; sane.services.trust-dns.quiet = true;