summary refs log tree commit diff stats
path: root/system/settings/services
diff options
context:
space:
mode:
authorAlan Pearce2019-11-12 19:30:35 +0100
committerAlan Pearce2019-11-20 11:14:15 +0100
commit749f4be1ef9b115c97fa717cc6068ab342c7650c (patch)
tree1a4041001578e0cb03c1dfd021c1082b71c2a816 /system/settings/services
parent1078600d993baaf585d91a476f0d03c992817518 (diff)
downloadnixfiles-749f4be1ef9b115c97fa717cc6068ab342c7650c.tar.lz
nixfiles-749f4be1ef9b115c97fa717cc6068ab342c7650c.tar.zst
nixfiles-749f4be1ef9b115c97fa717cc6068ab342c7650c.zip
Configure nextdns usage via module
Diffstat (limited to 'system/settings/services')
-rw-r--r--system/settings/services/kresd.nix22
1 files changed, 0 insertions, 22 deletions
diff --git a/system/settings/services/kresd.nix b/system/settings/services/kresd.nix
deleted file mode 100644
index 335d96cc..00000000
--- a/system/settings/services/kresd.nix
+++ /dev/null
@@ -1,22 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-let
-  nextdnsConfig = "abd6e5";
-  hostname = config.networking.hostName;
-in
-{
-  services.kresd = {
-    enable = true;
-    extraConfig = ''
-      cache.size = 100*MB
-      cache.min_ttl(3 * 3600)
-
-      policy.add(policy.all(policy.TLS_FORWARD({
-        {'45.90.28.0', hostname='${hostname}-${nextdnsConfig}.dns1.nextdns.io'},
-        {'2a07:a8c0::', hostname='${hostname}-${nextdnsConfig}.dns1.nextdns.io'},
-        {'45.90.30.0', hostname='${hostname}-${nextdnsConfig}.dns2.nextdns.io'},
-        {'2a07:a8c1::', hostname='${hostname}-${nextdnsConfig}.dns2.nextdns.io'}
-      })))
-    '';
-  };
-}