migrate adguardhome to container
This commit is contained in:
parent
4020891021
commit
0af96c20c6
2 changed files with 21 additions and 31 deletions
|
@ -1,31 +0,0 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
# 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";
|
||||
}
|
||||
];
|
||||
};
|
||||
mutableSettings = true;
|
||||
};
|
||||
environment.persistence."/persist" = {
|
||||
directories = [ "/var/lib/AdGuardHome" ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue