diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2016-02-15 03:37:45 +0100 |
---|---|---|
committer | Franz Pletz <fpletz@fnordicwalking.de> | 2016-02-15 03:59:35 +0100 |
commit | 9ba533ee4a68db8afda83b6f6584424c1aee8b76 (patch) | |
tree | e2c1567b1ef182bed43c2d7590b164f94a783b22 /nixos/modules/services/networking/unbound.nix | |
parent | fe4b0a4801c35af316c643bebf51a6841e6e61b5 (diff) | |
download | nixpkgs-9ba533ee4a68db8afda83b6f6584424c1aee8b76.tar nixpkgs-9ba533ee4a68db8afda83b6f6584424c1aee8b76.tar.gz nixpkgs-9ba533ee4a68db8afda83b6f6584424c1aee8b76.tar.bz2 nixpkgs-9ba533ee4a68db8afda83b6f6584424c1aee8b76.tar.lz nixpkgs-9ba533ee4a68db8afda83b6f6584424c1aee8b76.tar.xz nixpkgs-9ba533ee4a68db8afda83b6f6584424c1aee8b76.tar.zst nixpkgs-9ba533ee4a68db8afda83b6f6584424c1aee8b76.zip |
unbound service: add types to options
Diffstat (limited to 'nixos/modules/services/networking/unbound.nix')
-rw-r--r-- | nixos/modules/services/networking/unbound.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/networking/unbound.nix b/nixos/modules/services/networking/unbound.nix index 677cc2ce0c3..bad0d2d4e85 100644 --- a/nixos/modules/services/networking/unbound.nix +++ b/nixos/modules/services/networking/unbound.nix @@ -39,26 +39,31 @@ in enable = mkOption { default = false; + type = types.bool; description = "Whether to enable the Unbound domain name server."; }; allowedAccess = mkOption { default = ["127.0.0.0/24"]; + type = types.listOf types.str; description = "What networks are allowed to use unbound as a resolver."; }; interfaces = mkOption { default = [ "127.0.0.1" "::1" ]; + type = types.listOf types.str; description = "What addresses the server should listen on."; }; forwardAddresses = mkOption { default = [ ]; + type = types.listOf types.str; description = "What servers to forward queries to."; }; extraConfig = mkOption { default = ""; + type = types.str; description = "Extra lines of unbound config."; }; |