nameservers/overlay: Rename from dns

This commit is contained in:
SebastianStork 2026-03-01 19:07:18 +01:00
parent 91cab5d9c2
commit c283f4a047
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q
5 changed files with 6 additions and 6 deletions

View file

@ -21,7 +21,7 @@
}; };
services = { services = {
dns.enable = true; nameservers.overlay.enable = true;
syncthing = { syncthing = {
enable = true; enable = true;

View file

@ -20,6 +20,6 @@
}; };
}; };
services.dns.enable = true; services.nameservers.overlay.enable = true;
}; };
} }

View file

@ -63,7 +63,7 @@ in
default = default =
allHosts allHosts
|> lib.attrValues |> lib.attrValues
|> lib.filter (host: host.config.custom.services.dns.enable) |> lib.filter (host: host.config.custom.services.nameservers.overlay.enable)
|> lib.map (host: host.config.custom.networking.overlay.address); |> lib.map (host: host.config.custom.networking.overlay.address);
}; };

View file

@ -6,11 +6,11 @@
... ...
}: }:
let let
cfg = config.custom.services.dns; cfg = config.custom.services.nameservers.overlay;
netCfg = config.custom.networking; netCfg = config.custom.networking;
in in
{ {
options.custom.services.dns.enable = lib.mkEnableOption ""; options.custom.services.nameservers.overlay.enable = lib.mkEnableOption "";
config = lib.mkIf cfg.enable { config = lib.mkIf cfg.enable {
services = { services = {

View file

@ -58,7 +58,7 @@
}; };
}; };
services.dns.enable = true; services.nameservers.overlay.enable = true;
}; };
}; };