From 749f4be1ef9b115c97fa717cc6068ab342c7650c Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Tue, 12 Nov 2019 19:30:35 +0100 Subject: Configure nextdns usage via module --- system/settings/services/kresd.nix | 22 ---------------------- 1 file changed, 22 deletions(-) delete mode 100644 system/settings/services/kresd.nix (limited to 'system/settings/services') 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'} - }))) - ''; - }; -} -- cgit 1.4.1