dotfiles.nix/nixos/viridian/services/adguardhome.nix

32 lines
689 B
Nix
Raw Normal View History

2023-12-01 05:31:40 +08:00
{ ... }:
{
# Privacy protection center
services.adguardhome = {
enable = true;
openFirewall = true;
settings = {
# Web interface IP address to listen on.
bind_port = 3000;
# Web interface IP port to listen on.
bind_host = "0.0.0.0";
# Custom DNS responses
dns.rewrites = [
{ # LAN self-host domain
domain = "kanto.dev";
answer = "192.168.1.102";
}
{ # Wildcard subdomains
domain = "*.kanto.dev";
answer = "kanto.dev";
}
];
};
2024-01-01 07:23:29 +08:00
mutableSettings = true;
2023-12-01 05:31:40 +08:00
};
2024-01-21 21:00:06 +08:00
environment.persistence."/persist" = {
directories = [ "/var/lib/AdGuardHome" ];
};
2023-12-01 05:31:40 +08:00
}