summary refs log tree commit diff stats
path: root/system/modules
diff options
context:
space:
mode:
authorAlan Pearce2022-10-14 18:01:11 +0200
committerAlan Pearce2022-10-14 18:01:18 +0200
commit6e34ca8bda9cddcce1ea73f73b883a3ec8358678 (patch)
tree8c244fa50f03640b663b07dbe5ef74bc67d80833 /system/modules
parentbf435de812836511a9ba580a66acf3cd235cd15c (diff)
downloadnixfiles-6e34ca8bda9cddcce1ea73f73b883a3ec8358678.tar.lz
nixfiles-6e34ca8bda9cddcce1ea73f73b883a3ec8358678.tar.zst
nixfiles-6e34ca8bda9cddcce1ea73f73b883a3ec8358678.zip
Reformat nix files
Diffstat (limited to 'system/modules')
-rw-r--r--system/modules/nextdns.nix18
1 files changed, 9 insertions, 9 deletions
diff --git a/system/modules/nextdns.nix b/system/modules/nextdns.nix
index fabfb7cc..b6e33728 100644
--- a/system/modules/nextdns.nix
+++ b/system/modules/nextdns.nix
@@ -14,20 +14,20 @@ let
     extraConfig = ''
       modules = { 'hints > iterate' }
       localTrees = policy.todnames({
-        'lan.',
-        'home.',
-        '10.in-addr.arpa.',
-        '172.in-addr.arpa.',
-        '192.in-addr.arpa.'
+      'lan.',
+      'home.',
+      '10.in-addr.arpa.',
+      '172.in-addr.arpa.',
+      '192.in-addr.arpa.'
       })
       hints.add_hosts()
       policy.add(policy.suffix(policy.FLAGS({'NO_CACHE'}), localTrees))
       policy.add(policy.suffix(policy.STUB({ '192.168.0.1', '192.168.1.1', '172.30.42.1', '10.0.0.1' }), localTrees))
       policy.add(policy.all(policy.TLS_FORWARD({
-        {'45.90.28.0', hostname='${identifyingPrefix}${cfg.configID}.dns1.nextdns.io'},
-        {'2a07:a8c0::', hostname='${identifyingPrefix}${cfg.configID}.dns1.nextdns.io'},
-        {'45.90.30.0', hostname='${identifyingPrefix}${cfg.configID}.dns2.nextdns.io'},
-        {'2a07:a8c1::', hostname='${identifyingPrefix}${cfg.configID}.dns2.nextdns.io'}
+      {'45.90.28.0', hostname='${identifyingPrefix}${cfg.configID}.dns1.nextdns.io'},
+      {'2a07:a8c0::', hostname='${identifyingPrefix}${cfg.configID}.dns1.nextdns.io'},
+      {'45.90.30.0', hostname='${identifyingPrefix}${cfg.configID}.dns2.nextdns.io'},
+      {'2a07:a8c1::', hostname='${identifyingPrefix}${cfg.configID}.dns2.nextdns.io'}
       })))
     '';
   };