summary refs log tree commit diff
diff options
context:
space:
mode:
authorpaumr <paum@bdisk.eu>2021-05-08 23:13:58 +0200
committerpaumr <paum@bdisk.eu>2021-05-08 23:13:58 +0200
commit5390d4b9468f2027660e48a694d593a948be308f (patch)
tree7252da8be60c7712ee7e24df83204d6ed4802551
parent713a95e5d56cd114e6b8dab881799f8922a726a9 (diff)
downloadnixpkgs-5390d4b9468f2027660e48a694d593a948be308f.tar
nixpkgs-5390d4b9468f2027660e48a694d593a948be308f.tar.gz
nixpkgs-5390d4b9468f2027660e48a694d593a948be308f.tar.bz2
nixpkgs-5390d4b9468f2027660e48a694d593a948be308f.tar.lz
nixpkgs-5390d4b9468f2027660e48a694d593a948be308f.tar.xz
nixpkgs-5390d4b9468f2027660e48a694d593a948be308f.tar.zst
nixpkgs-5390d4b9468f2027660e48a694d593a948be308f.zip
nixos/bind: formatted with nixpkgs-fmt
-rw-r--r--nixos/modules/services/networking/bind.nix23
1 files changed, 12 insertions, 11 deletions
diff --git a/nixos/modules/services/networking/bind.nix b/nixos/modules/services/networking/bind.nix
index b73b2b62685..20eef2c3455 100644
--- a/nixos/modules/services/networking/bind.nix
+++ b/nixos/modules/services/networking/bind.nix
@@ -32,7 +32,7 @@ let
       slaves = mkOption {
         type = types.listOf types.str;
         description = "Addresses who may request zone transfers.";
-        default = [];
+        default = [ ];
       };
       extraConfig = mkOption {
         type = types.str;
@@ -105,7 +105,7 @@ in
       enable = mkEnableOption "BIND domain name server";
 
       cacheNetworks = mkOption {
-        default = ["127.0.0.0/24"];
+        default = [ "127.0.0.0/24" ];
         type = types.listOf types.str;
         description = "
           What networks are allowed to use us as a resolver.  Note
@@ -117,7 +117,7 @@ in
       };
 
       blockedNetworks = mkOption {
-        default = [];
+        default = [ ];
         type = types.listOf types.str;
         description = "
           What networks are just blocked.
@@ -141,7 +141,7 @@ in
       };
 
       listenOn = mkOption {
-        default = ["any"];
+        default = [ "any" ];
         type = types.listOf types.str;
         description = "
           Interfaces to listen on.
@@ -149,7 +149,7 @@ in
       };
 
       listenOnIpv6 = mkOption {
-        default = ["any"];
+        default = [ "any" ];
         type = types.listOf types.str;
         description = "
           Ipv6 interfaces to listen on.
@@ -157,7 +157,7 @@ in
       };
 
       zones = mkOption {
-        default = [];
+        default = [ ];
         type = with types; coercedTo (listOf attrs) bindZoneCoerce (attrsOf (types.submodule bindZoneOptions));
         description = "
           List of zones we claim authority over.
@@ -166,8 +166,8 @@ in
           "example.com" = {
             master = false;
             file = "/var/dns/example.com";
-            masters = ["192.168.0.1"];
-            slaves = [];
+            masters = [ "192.168.0.1" ];
+            slaves = [ ];
             extraConfig = "";
           };
         };
@@ -212,7 +212,8 @@ in
     networking.resolvconf.useLocalResolver = mkDefault true;
 
     users.users.${bindUser} =
-      { uid = config.ids.uids.bind;
+      {
+        uid = config.ids.uids.bind;
         description = "BIND daemon user";
       };
 
@@ -232,9 +233,9 @@ in
       '';
 
       serviceConfig = {
-        ExecStart  = "${pkgs.bind.out}/sbin/named -u ${bindUser} ${optionalString cfg.ipv4Only "-4"} -c ${cfg.configFile} -f";
+        ExecStart = "${pkgs.bind.out}/sbin/named -u ${bindUser} ${optionalString cfg.ipv4Only "-4"} -c ${cfg.configFile} -f";
         ExecReload = "${pkgs.bind.out}/sbin/rndc -k '/etc/bind/rndc.key' reload";
-        ExecStop   = "${pkgs.bind.out}/sbin/rndc -k '/etc/bind/rndc.key' stop";
+        ExecStop = "${pkgs.bind.out}/sbin/rndc -k '/etc/bind/rndc.key' stop";
       };
 
       unitConfig.Documentation = "man:named(8)";