mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
nameservers/overlay: Rename from dns
This commit is contained in:
parent
91cab5d9c2
commit
c283f4a047
5 changed files with 6 additions and 6 deletions
|
|
@ -21,7 +21,7 @@
|
|||
};
|
||||
|
||||
services = {
|
||||
dns.enable = true;
|
||||
nameservers.overlay.enable = true;
|
||||
|
||||
syncthing = {
|
||||
enable = true;
|
||||
|
|
|
|||
|
|
@ -20,6 +20,6 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.dns.enable = true;
|
||||
services.nameservers.overlay.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ in
|
|||
default =
|
||||
allHosts
|
||||
|> 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);
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.custom.services.dns;
|
||||
cfg = config.custom.services.nameservers.overlay;
|
||||
netCfg = config.custom.networking;
|
||||
in
|
||||
{
|
||||
options.custom.services.dns.enable = lib.mkEnableOption "";
|
||||
options.custom.services.nameservers.overlay.enable = lib.mkEnableOption "";
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services = {
|
||||
|
|
@ -58,7 +58,7 @@
|
|||
};
|
||||
};
|
||||
|
||||
services.dns.enable = true;
|
||||
services.nameservers.overlay.enable = true;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue