nixos/hosts/hub/apps/adguard.nix
2024-12-31 14:48:47 -06:00

29 lines
611 B
Nix

{
containers.adguardhome = {
autoStart = true;
privateNetwork = true;
hostAddress = "192.168.0.1";
localAddress = "192.168.0.4";
config =
{ lib, ... }:
{
services = {
adguardhome = {
enable = true;
port = 80;
settings = {
filtering = {
protection_enabled = true;
filtering_enabled = true;
};
};
};
tailscale = {
enable = true;
interfaceName = "userspace-networking";
};
};
};
};
}