summaryrefslogtreecommitdiff
path: root/sys/ns/ns.nix
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2025-01-01 16:46:08 -0600
committerAlejandro Soto <alejandro@34project.org>2025-01-01 21:49:38 -0600
commit083c1d226a03fb84fb1e717adc1581049df689cf (patch)
tree4df12bdf7d4560023160359035f10c2217df6e79 /sys/ns/ns.nix
parentb1b3a635db095a54c1863b01b7ecb290e539c152 (diff)
sys: refactor address and network number management
Diffstat (limited to 'sys/ns/ns.nix')
-rw-r--r--sys/ns/ns.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/ns/ns.nix b/sys/ns/ns.nix
index f23fccf..4c242b6 100644
--- a/sys/ns/ns.nix
+++ b/sys/ns/ns.nix
@@ -1,6 +1,7 @@
{ config, lib, ... }:
with lib; let
inherit (config.local.ns.server) tsigName;
+ inherit (config.local.nets) gate-public;
in
{
options.local.ns.zones = mkOption {
@@ -41,11 +42,11 @@ in
];
a = [
- { name = cfg.primary; ipv4 = "37.205.12.147"; }
+ { name = cfg.primary; ipv4 = gate-public.hosts.gate.v4.address; }
];
aaaa = [
- { name = cfg.primary; ipv6 = "2a03:3b40:fe:3ec::1"; }
+ { name = cfg.primary; ipv6 = gate-public.hosts.gate.v6.address; }
];
};
}));