3
0
Fork 0
forked from mirrors/nixpkgs

nsd service: use mkEnableOption

This commit is contained in:
Christoph Hrdinka 2015-12-04 16:05:11 +01:00
parent ff66ac9dd0
commit e2720bfb70

View file

@ -300,22 +300,8 @@ in
options = { options = {
services.nsd = { services.nsd = {
enable = mkOption { enable = mkEnableOption "NSD authoritative DNS server";
type = types.bool; bind8Stats = mkEnableOption "BIND8 like statistics";
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.
'';
};
rootServer = mkOption { rootServer = mkOption {
type = types.bool; type = types.bool;
@ -483,13 +469,7 @@ in
ratelimit = { ratelimit = {
enable = mkOption { enable = mkEnableOption "ratelimit capabilities";
type = types.bool;
default = false;
description = ''
Enable ratelimit capabilities.
'';
};
size = mkOption { size = mkOption {
type = types.int; type = types.int;
@ -548,13 +528,7 @@ in
remoteControl = { remoteControl = {
enable = mkOption { enable = mkEnableOption "remote control via nsd-control";
type = types.bool;
default = false;
description = ''
Wheter to enable remote control via nsd-control(8).
'';
};
interfaces = mkOption { interfaces = mkOption {
type = types.listOf types.str; type = types.listOf types.str;