summaryrefslogtreecommitdiff
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
parent251ce90e1bc99a9a05a2ebfe548f696c839e7a2a (diff)
2024-01-21
Diffstat (limited to 'modules/nixos/unbound.nix')
-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 = {