mirror of
https://git.sr.ht/~rouven/nixos-config
synced 2025-01-18 17:11:39 +01:00
nuc: re-enable adguard dns
This commit is contained in:
parent
5dbab41a2e
commit
cb49b95c53
3 changed files with 15 additions and 6 deletions
|
@ -5,6 +5,7 @@
|
||||||
# Include the results of the hardware scan.
|
# Include the results of the hardware scan.
|
||||||
./hardware-configuration.nix
|
./hardware-configuration.nix
|
||||||
./modules/networks
|
./modules/networks
|
||||||
|
./modules/adguard
|
||||||
./modules/backup
|
./modules/backup
|
||||||
./modules/cache
|
./modules/cache
|
||||||
./modules/matrix
|
./modules/matrix
|
||||||
|
|
10
hosts/nuc/modules/adguard/default.nix
Normal file
10
hosts/nuc/modules/adguard/default.nix
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
{ ... }:
|
||||||
|
{
|
||||||
|
networking.firewall.allowedTCPPorts = [ 53 ];
|
||||||
|
networking.firewall.allowedUDPPorts = [ 53 ];
|
||||||
|
services.adguardhome = {
|
||||||
|
enable = true;
|
||||||
|
openFirewall = true;
|
||||||
|
settings.bind_port = 3000;
|
||||||
|
};
|
||||||
|
}
|
|
@ -21,12 +21,10 @@
|
||||||
"2620:fe::fe"
|
"2620:fe::fe"
|
||||||
"2620:fe::9"
|
"2620:fe::9"
|
||||||
];
|
];
|
||||||
# make room for the adguard dns
|
extraConfig = ''
|
||||||
# extraConfig = ''
|
[Resolve]
|
||||||
# [Resolve]
|
DNSStubListener=no
|
||||||
# DNS=127.0.0.1
|
'';
|
||||||
# DNSStubListener=no
|
|
||||||
# '';
|
|
||||||
};
|
};
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
Loading…
Reference in a new issue