diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-02-07 18:40:15 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-02-15 03:59:15 +0100 |
commit | fe4b0a4801c35af316c643bebf51a6841e6e61b5 (patch) | |
tree | 820ee033ae9aa10bbedbabf44f37f4420e639fcd /nixos/modules/services/networking/unbound.nix | |
parent | ffef91e914ce8990884aae1c2fd38ea11b2b25f1 (diff) | |
download | nixlib-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/modules/services/networking/unbound.nix')
-rw-r--r-- | nixos/modules/services/networking/unbound.nix | 26 |
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 ''; |