diff options
Diffstat (limited to 'config/networking/services/dns.nix')
| -rw-r--r-- | config/networking/services/dns.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/config/networking/services/dns.nix b/config/networking/services/dns.nix index 9e26b41..5c06eeb 100644 --- a/config/networking/services/dns.nix +++ b/config/networking/services/dns.nix @@ -1,18 +1,18 @@ { config, ... }: -let cfg = config.personal.networking; +let nets = config.personal.networking.networks; in { services.unbound = { enable = true; settings = { server = { interface = - [ "127.0.0.1" "${cfg.subnets.private}.1" "${cfg.subnets.iot}.1" ]; + [ "127.0.0.1" "${nets.wan.subnet}.1" "${nets.iot.subnet}.1" ]; access-control = [ "0.0.0.0/0 refuse" "127.0.0.0/8 allow" - "${cfg.subnets.private}.0/24 allow" - "${cfg.subnets.iot}.0/24 allow" + "${nets.wan.subnet}.0/24 allow" + "${nets.iot.subnet}.0/24 allow" ]; }; }; |
