summaryrefslogtreecommitdiff
path: root/config/networking/services/dns.nix
diff options
context:
space:
mode:
authorquentin@aristote.fr <quentin@aristote.fr>2023-04-13 14:20:22 +0200
committerquentin@aristote.fr <quentin@aristote.fr>2023-04-13 14:20:22 +0200
commitdbb6444b03bacb9479560e8cd87ebe2776d348b3 (patch)
tree9a3bc95bfdbc63bc1695af987e7b0377b9661c37 /config/networking/services/dns.nix
parent25494ff6c1d9efbc04549a51186bc4fb15c63b30 (diff)
networking: restructure personal.networking modules
Diffstat (limited to 'config/networking/services/dns.nix')
-rw-r--r--config/networking/services/dns.nix8
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"
];
};
};