beginnings of split dns

This commit is contained in:
William 2025-11-08 20:47:21 -03:00
parent a1369e5818
commit 2289f0e6e4
10 changed files with 177 additions and 3 deletions

View file

@ -0,0 +1,28 @@
{ config, lib, ... }:
{
options.services.splitDNS = {
entries = lib.mkOption {
type = lib.types.listOf (
lib.types.submodule {
options = {
domain = lib.mkOption {
type = lib.types.str;
description = "The domain name to configure";
};
lanIP = lib.mkOption {
type = lib.types.str;
description = "IP address to return for LAN requests";
};
tailscaleIP = lib.mkOption {
type = lib.types.str;
description = "IP address to return for Tailscale requests";
};
};
}
);
default = [ ];
description = "List of domains to configure for split DNS";
};
};
}