about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorJoachim Fasting <joachifm@fastmail.fm>2016-08-29 18:19:18 +0200
committerJoachim Fasting <joachifm@fastmail.fm>2016-08-29 23:48:11 +0200
commit23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17 (patch)
tree02e25acc18b0f7aa884306a8a3cd47cac069d5ed /nixos
parent86d1953ed4a5317e6d103aaa08bc622d7e5fb34a (diff)
downloadnixlib-23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17.tar
nixlib-23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17.tar.gz
nixlib-23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17.tar.bz2
nixlib-23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17.tar.lz
nixlib-23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17.tar.xz
nixlib-23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17.tar.zst
nixlib-23a7e6e9110d9bd7e3ffd24b27c50d96ad0eaa17.zip
dnscrypt-proxy module: formatting
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/dnscrypt-proxy.nix17
1 files changed, 13 insertions, 4 deletions
diff --git a/nixos/modules/services/networking/dnscrypt-proxy.nix b/nixos/modules/services/networking/dnscrypt-proxy.nix
index cf36ccf05725..3102bd7492a7 100644
--- a/nixos/modules/services/networking/dnscrypt-proxy.nix
+++ b/nixos/modules/services/networking/dnscrypt-proxy.nix
@@ -62,6 +62,7 @@ in
           of other machines (typically on the local network).
         '';
       };
+
       localPort = mkOption {
         default = 53;
         type = types.int;
@@ -72,6 +73,7 @@ in
           to a different value; otherwise leave the default.
         '';
       };
+
       resolverName = mkOption {
         default = "dnscrypt.eu-nl";
         type = types.nullOr types.str;
@@ -82,6 +84,7 @@ in
           extensions, and claims to not keep logs.
         '';
       };
+
       resolverList = mkOption {
         description = ''
           The list of upstream DNSCrypt resolvers. By default, we use the most
@@ -94,6 +97,7 @@ in
         };
         defaultText = "pkgs.fetchurl { url = ...; sha256 = ...; }";
       };
+
       customResolver = mkOption {
         default = null;
         description = ''
@@ -103,26 +107,30 @@ in
         type = types.nullOr (types.submodule ({ ... }: { options = {
           address = mkOption {
             type = types.str;
-            description = "Resolver IP address";
+            description = "IP address";
             example = "208.67.220.220";
           };
+
           port = mkOption {
             type = types.int;
-            description = "Resolver port";
+            description = "Port";
             default = 443;
           };
+
           name = mkOption {
             type = types.str;
-            description = "Provider fully qualified domain name";
+            description = "Fully qualified domain name";
             example = "2.dnscrypt-cert.opendns.com";
           };
+
           key = mkOption {
             type = types.str;
-            description = "Provider public key";
+            description = "Public key";
             example = "B735:1140:206F:225D:3E2B:D822:D7FD:691E:A1C3:3CC8:D666:8D0C:BE04:BFAB:CA43:FB79";
           };
         }; }));
       };
+
       tcpOnly = mkOption {
         default = false;
         type = types.bool;
@@ -131,6 +139,7 @@ in
           TCP instead of UDP (on port 443). Use only if the UDP port is blocked.
         '';
       };
+
       ephemeralKeys = mkOption {
         default = false;
         type = types.bool;