summaryrefslogtreecommitdiff
path: root/sys/ns/rr.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/rr.nix
parentb1b3a635db095a54c1863b01b7ecb290e539c152 (diff)
sys: refactor address and network number management
Diffstat (limited to 'sys/ns/rr.nix')
-rw-r--r--sys/ns/rr.nix7
1 files changed, 7 insertions, 0 deletions
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;