mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-19 01:21:39 +01:00
fixed adguard
This commit is contained in:
parent
ffdd151409
commit
0677beb1c0
2 changed files with 11 additions and 0 deletions
|
@ -1,5 +1,7 @@
|
|||
{ ... }:
|
||||
{
|
||||
networking.firewall.allowedTCPPorts = [53];
|
||||
networking.firewall.allowedUDPPorts = [53];
|
||||
services.adguardhome = {
|
||||
enable = true;
|
||||
openFirewall = true;
|
||||
|
|
|
@ -5,6 +5,15 @@
|
|||
useNetworkd = true;
|
||||
enableIPv6 = true;
|
||||
};
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
# make room for the adguard dns
|
||||
extraConfig = ''
|
||||
[Resolve]
|
||||
DNS=127.0.0.1
|
||||
DNSStubListener=no
|
||||
'';
|
||||
};
|
||||
systemd.network = {
|
||||
enable = true;
|
||||
networks."10-loopback" = {
|
||||
|
|
Loading…
Reference in a new issue