summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorFranz Pletz <fpletz@fnordicwalking.de>2016-02-07 18:40:15 +0100
committerFranz Pletz <fpletz@fnordicwalking.de>2016-02-15 03:59:15 +0100
commitfe4b0a4801c35af316c643bebf51a6841e6e61b5 (patch)
tree820ee033ae9aa10bbedbabf44f37f4420e639fcd /nixos
parentffef91e914ce8990884aae1c2fd38ea11b2b25f1 (diff)
downloadnixlib-fe4b0a4801c35af316c643bebf51a6841e6e61b5.tar
nixlib-fe4b0a4801c35af316c643bebf51a6841e6e61b5.tar.gz
nixlib-fe4b0a4801c35af316c643bebf51a6841e6e61b5.tar.bz2
nixlib-fe4b0a4801c35af316c643bebf51a6841e6e61b5.tar.lz
nixlib-fe4b0a4801c35af316c643bebf51a6841e6e61b5.tar.xz
nixlib-fe4b0a4801c35af316c643bebf51a6841e6e61b5.tar.zst
nixlib-fe4b0a4801c35af316c643bebf51a6841e6e61b5.zip
unbound service: retab
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/unbound.nix26
1 files changed, 13 insertions, 13 deletions
diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix
index 73b10c1d5611..677cc2ce0c3a 100644
--- a/nixos/modules/services/networking/unbound.nix
+++ b/nixos/modules/services/networking/unbound.nix
@@ -38,28 +38,28 @@ in
     services.unbound = {
 
       enable = mkOption {
-	default = false;
-	description = "Whether to enable the Unbound domain name server.";
+        default = false;
+        description = "Whether to enable the Unbound domain name server.";
       };
 
       allowedAccess = mkOption {
-	default = ["127.0.0.0/24"];
-	description = "What networks are allowed to use unbound as a resolver.";
+        default = ["127.0.0.0/24"];
+        description = "What networks are allowed to use unbound as a resolver.";
       };
 
       interfaces = mkOption {
-	default = [ "127.0.0.1" "::1" ];
-	description = "What addresses the server should listen on.";
+        default = [ "127.0.0.1" "::1" ];
+        description = "What addresses the server should listen on.";
       };
 
       forwardAddresses = mkOption {
-	default = [ ];
-	description = "What servers to forward queries to.";
+        default = [ ];
+        description = "What servers to forward queries to.";
       };
 
       extraConfig = mkOption {
-	default = "";
-	description = "Extra lines of unbound config.";
+        default = "";
+        description = "Extra lines of unbound config.";
       };
 
     };
@@ -88,9 +88,9 @@ in
 
       preStart = ''
         mkdir -m 0755 -p ${stateDir}/dev/
-	cp ${confFile} ${stateDir}/unbound.conf
-	chown unbound ${stateDir}
-	touch ${stateDir}/dev/random
+        cp ${confFile} ${stateDir}/unbound.conf
+        chown unbound ${stateDir}
+        touch ${stateDir}/dev/random
         ${pkgs.utillinux}/bin/mount --bind -n /dev/random ${stateDir}/dev/random
       '';