diff options
author | Christoph Hrdinka <c.github@hrdinka.at> | 2015-12-04 16:05:11 +0100 |
---|---|---|
committer | Christoph Hrdinka <c.github@hrdinka.at> | 2015-12-04 16:13:02 +0100 |
commit | e2720bfb7073d7b3126091a7dc3185b36094bab3 (patch) | |
tree | dd6880d2dcc107ca25039178a2a5d0aacd57da74 /nixos/modules/services/networking/nsd.nix | |
parent | ff66ac9dd089778154a8197c84a87fcd302d66fa (diff) | |
download | nixpkgs-e2720bfb7073d7b3126091a7dc3185b36094bab3.tar nixpkgs-e2720bfb7073d7b3126091a7dc3185b36094bab3.tar.gz nixpkgs-e2720bfb7073d7b3126091a7dc3185b36094bab3.tar.bz2 nixpkgs-e2720bfb7073d7b3126091a7dc3185b36094bab3.tar.lz nixpkgs-e2720bfb7073d7b3126091a7dc3185b36094bab3.tar.xz nixpkgs-e2720bfb7073d7b3126091a7dc3185b36094bab3.tar.zst nixpkgs-e2720bfb7073d7b3126091a7dc3185b36094bab3.zip |
nsd service: use mkEnableOption
Diffstat (limited to 'nixos/modules/services/networking/nsd.nix')
-rw-r--r-- | nixos/modules/services/networking/nsd.nix | 34 |
1 files changed, 4 insertions, 30 deletions
diff --git a/nixos/modules/services/networking/nsd.nix b/nixos/modules/services/networking/nsd.nix index 36d9f5d2f16..e85f2681125 100644 --- a/nixos/modules/services/networking/nsd.nix +++ b/nixos/modules/services/networking/nsd.nix @@ -300,22 +300,8 @@ in options = { services.nsd = { - enable = mkOption { - type = types.bool; - default = false; - description = '' - Whether to enable the NSD authoritative domain name server. - ''; - }; - - bind8Stats = mkOption { - type = types.bool; - default = false; - example = true; - description = '' - Wheter to enable BIND8 like statisics. - ''; - }; + enable = mkEnableOption "NSD authoritative DNS server"; + bind8Stats = mkEnableOption "BIND8 like statistics"; rootServer = mkOption { type = types.bool; @@ -483,13 +469,7 @@ in ratelimit = { - enable = mkOption { - type = types.bool; - default = false; - description = '' - Enable ratelimit capabilities. - ''; - }; + enable = mkEnableOption "ratelimit capabilities"; size = mkOption { type = types.int; @@ -548,13 +528,7 @@ in remoteControl = { - enable = mkOption { - type = types.bool; - default = false; - description = '' - Wheter to enable remote control via nsd-control(8). - ''; - }; + enable = mkEnableOption "remote control via nsd-control"; interfaces = mkOption { type = types.listOf types.str; |