Remove split DNS module and per-service entries
Removed the split-dns.nix module and all service-specific splitDNS.entries configurations. Service DNS records are now sourced from the centralized shared/services.nix file instead of being declared individually in each service configuration.
This commit is contained in:
parent
af444584d0
commit
8d8847e2fb
5 changed files with 0 additions and 64 deletions
|
|
@ -32,13 +32,4 @@ in
|
|||
domains."git.baduhai.dev".locations."/".proxyPass =
|
||||
"http://unix:${config.services.forgejo.settings.server.HTTP_ADDR}:/";
|
||||
};
|
||||
|
||||
# Register this domain for split DNS
|
||||
services.splitDNS.entries = [
|
||||
{
|
||||
domain = "git.baduhai.dev";
|
||||
lanIP = "192.168.15.142";
|
||||
tailscaleIP = "100.76.19.50";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,13 +13,4 @@ in
|
|||
acmeHost = "baduhai.dev";
|
||||
domains."jellyfin.baduhai.dev".locations."/".proxyPass = "http://127.0.0.1:8096/";
|
||||
};
|
||||
|
||||
# Register this domain for split DNS
|
||||
services.splitDNS.entries = [
|
||||
{
|
||||
domain = "jellyfin.baduhai.dev";
|
||||
lanIP = "192.168.15.142";
|
||||
tailscaleIP = "100.76.19.50";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -79,15 +79,6 @@ in
|
|||
acmeHost = "baduhai.dev";
|
||||
domains."cloud.baduhai.dev" = { };
|
||||
};
|
||||
|
||||
# Register this domain for split DNS
|
||||
splitDNS.entries = [
|
||||
{
|
||||
domain = "cloud.baduhai.dev";
|
||||
lanIP = "192.168.15.142";
|
||||
tailscaleIP = "100.76.19.50";
|
||||
}
|
||||
];
|
||||
};
|
||||
|
||||
age.secrets = {
|
||||
|
|
|
|||
|
|
@ -24,13 +24,4 @@ in
|
|||
domains."pass.baduhai.dev".locations."/".proxyPass =
|
||||
"http://${config.services.vaultwarden.config.ROCKET_ADDRESS}:${toString config.services.vaultwarden.config.ROCKET_PORT}/";
|
||||
};
|
||||
|
||||
# Register this domain for split DNS
|
||||
services.splitDNS.entries = [
|
||||
{
|
||||
domain = "pass.baduhai.dev";
|
||||
lanIP = "192.168.15.142";
|
||||
tailscaleIP = "100.76.19.50";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,28 +0,0 @@
|
|||
{ 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue