From 083c1d226a03fb84fb1e717adc1581049df689cf Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Wed, 1 Jan 2025 16:46:08 -0600 Subject: sys: refactor address and network number management --- sys/ns/rr.nix | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'sys/ns/rr.nix') diff --git a/sys/ns/rr.nix b/sys/ns/rr.nix index a007c4a..a80eaf4 100644 --- a/sys/ns/rr.nix +++ b/sys/ns/rr.nix @@ -1,6 +1,7 @@ { config, lib, options, pkgs, ... }: with lib; let cfg = config.local.ns; + globalConfig = config; segmentRegex = "[a-z0-9_-]+(\\.[a-z0-9_-]+)*"; @@ -78,6 +79,12 @@ in in { options = { + local = mkOption { + type = unspecified; + default = globalConfig.local; + readOnly = true; + }; + defaultTTL = mkOption { type = int; default = 3600; -- cgit v1.2.3