nameservers: Restructure modules

This commit is contained in:
SebastianStork 2026-03-02 01:49:08 +01:00
parent 1f2c921b81
commit 2b26c715f2
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
6 changed files with 10 additions and 10 deletions

View file

@ -6,7 +6,7 @@
...
}:
let
cfg = config.custom.services.nameservers.public;
cfg = config.custom.services.public-nameserver;
netCfg = config.custom.networking;
zoneData =
@ -38,7 +38,7 @@ let
nsRecords =
allHosts
|> lib.attrValues
|> lib.filter (host: host.config.custom.services.nameservers.public.enable)
|> lib.filter (host: host.config.custom.services.public-nameserver.enable)
|> lib.map (host: {
name = host.config.custom.networking.hostName;
inherit (host.config.custom.networking.underlay) address;
@ -64,7 +64,7 @@ let
};
in
{
options.custom.services.nameservers.public = {
options.custom.services.public-nameserver = {
enable = lib.mkEnableOption "";
zones = lib.mkOption {
type = lib.types.nonEmptyListOf lib.types.nonEmptyStr;