Bebop: Switch back to pihole and remove adguardhome

This commit is contained in:
Payas Relekar 2022-04-21 23:31:32 +05:30
parent d83ec9b498
commit f398774bf3
2 changed files with 1 additions and 18 deletions

View file

@ -79,13 +79,13 @@
# Modules and module config
./modules/fish.nix
./modules/adguardhome.nix
./modules/monitoring/monitoring.nix
# Host-specific config
nixos-hardware.nixosModules.raspberry-pi-4
./hosts/bebop/configuration.nix
./hosts/bebop/syncthing.nix
./hosts/bebop/pihole.nix
# User-specific config : Home-manager
home-manager.nixosModules.home-manager

View file

@ -1,17 +0,0 @@
{ config, ... }:
{
services.adguardhome = {
enable = true;
host = "0.0.0.0";
port = 3000;
openFirewall = true;
# Until I get a hang of things. Eventually might want to declare config declaratively
mutableSettings = true;
};
# Open agduardhome port, but only for local network
networking.firewall.extraCommands = ''
iptables -A nixos-fw -p tcp --source 192.168.0.0/24 --dport 3000:3000 -j nixos-fw-accept
iptables -A nixos-fw -p udp --source 192.168.0.0/24 --dport 3000:3000 -j nixos-fw-accept
'';
}