From 61b20b94d47d953dc2a1eed8199198a94bd10dfa Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Tue, 31 Dec 2024 14:48:47 -0600 Subject: [PATCH] Add adguardhome. --- hosts/hub/apps/adguard.nix | 28 ++++++++++++++++++++++++++++ hosts/hub/default.nix | 1 + 2 files changed, 29 insertions(+) create mode 100644 hosts/hub/apps/adguard.nix diff --git a/hosts/hub/apps/adguard.nix b/hosts/hub/apps/adguard.nix new file mode 100644 index 0000000..fa0d758 --- /dev/null +++ b/hosts/hub/apps/adguard.nix @@ -0,0 +1,28 @@ +{ + 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"; + }; + }; + }; + }; +} diff --git a/hosts/hub/default.nix b/hosts/hub/default.nix index 9b9f836..ba91d27 100644 --- a/hosts/hub/default.nix +++ b/hosts/hub/default.nix @@ -24,6 +24,7 @@ ./apps/nextcloud.nix ./apps/searxng.nix ./apps/actual.nix + ./apps/adguard.nix ]; boot.loader.grub = {