about summary refs log tree commit diff
path: root/modules/nixos/unbound.nix
diff options
context:
space:
mode:
authorAzat Bahawi <azat@bahawi.net>2024-01-21 15:11:34 +0300
committerAzat Bahawi <azat@bahawi.net>2024-01-21 15:11:34 +0300
commit8dd4dce913b60163afb0b4a9bdecc79c0c7ef873 (patch)
tree7fac2f22f4c1db027469bcebdd7af159b56aa412 /modules/nixos/unbound.nix
parent2024-01-17 (diff)
2024-01-21
Diffstat (limited to '')
-rw-r--r--modules/nixos/unbound.nix25
1 files changed, 1 insertions, 24 deletions
diff --git a/modules/nixos/unbound.nix b/modules/nixos/unbound.nix
index 8dce3f5..e6cad81 100644
--- a/modules/nixos/unbound.nix
+++ b/modules/nixos/unbound.nix
@@ -24,30 +24,7 @@ in {
     mkIf cfg.enable {
       ark.directories = [config.services.unbound.stateDir];
 
-      nixfiles.modules = {
-        redis.enable = true;
-
-        promtail.filters = [
-          {
-            match = {
-              selector = ''{syslog_identifier="unbound"} |~ " start | stopped |.*in-addr.arpa."'';
-              action = "drop";
-            };
-          }
-          {
-            match = {
-              selector = ''{syslog_identifier="unbound"} |= "reply:"'';
-              stages = [{static_labels.dns = "reply";}];
-            };
-          }
-          {
-            match = {
-              selector = ''{syslog_identifier="unbound"} |~ "redirect |always_null|always_nxdomain"'';
-              stages = [{static_labels.dns = "block";}];
-            };
-          }
-        ];
-      };
+      nixfiles.modules.redis.enable = true;
 
       services = {
         unbound = {

Consider giving Nix/NixOS a try! <3