25 lines
537 B
Nix
25 lines
537 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
# Enable the DNS module
|
|
pepe.core.dns = {
|
|
enable = true;
|
|
nextDNSId = "d65174";
|
|
extraDomains = {
|
|
"architect.devs.giugl.io" = {
|
|
dnsInterfaces = [ "lan" "tailscale" ];
|
|
};
|
|
};
|
|
};
|
|
|
|
# Configure AdGuard
|
|
pepe.core.vhost.hosts."adguard.giugl.io" = with config.pepe.core.network; {
|
|
dnsInterfaces = [ interfaceTypes.vpn interfaceTypes.lan ];
|
|
locations."/" = {
|
|
port = config.services.adguardhome.port;
|
|
allowLAN = true;
|
|
allowVPN = true;
|
|
};
|
|
};
|
|
}
|