mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-31 09:55:38 +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 = {
|
services.adguardhome = {
|
||||||
enable = true;
|
enable = true;
|
||||||
openFirewall = true;
|
openFirewall = true;
|
||||||
|
|
|
@ -5,6 +5,15 @@
|
||||||
useNetworkd = true;
|
useNetworkd = true;
|
||||||
enableIPv6 = true;
|
enableIPv6 = true;
|
||||||
};
|
};
|
||||||
|
services.resolved = {
|
||||||
|
enable = true;
|
||||||
|
# make room for the adguard dns
|
||||||
|
extraConfig = ''
|
||||||
|
[Resolve]
|
||||||
|
DNS=127.0.0.1
|
||||||
|
DNSStubListener=no
|
||||||
|
'';
|
||||||
|
};
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
networks."10-loopback" = {
|
networks."10-loopback" = {
|
||||||
|
|
Loading…
Add table
Reference in a new issue