replace adguardhome with dnsmasq
This commit is contained in:
parent
2d61c06946
commit
7c7b45995d
6 changed files with 17 additions and 57 deletions
16
sys/machines/hopper/lab/dnsmasq.nix
Normal file
16
sys/machines/hopper/lab/dnsmasq.nix
Normal file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
vars,
|
||||
lib,
|
||||
...
|
||||
}: {
|
||||
services.dnsmasq = {
|
||||
enable = true;
|
||||
resolveLocalQueries = false;
|
||||
settings = {
|
||||
server = ["1.1.1.1" "8.8.8.8"];
|
||||
interface = ["tailscale0"];
|
||||
bind-interfaces = true;
|
||||
address = lib.mapAttrsToList (n: v: "/.${n}.xun.host/${v}") vars.tailnet;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue