dnsmasq: Add some types
This commit is contained in:
parent
5a5a43ea25
commit
a0f69df10e
@ -28,6 +28,7 @@ in
|
|||||||
services.dnsmasq = {
|
services.dnsmasq = {
|
||||||
|
|
||||||
enable = mkOption {
|
enable = mkOption {
|
||||||
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = ''
|
description = ''
|
||||||
Whether to run dnsmasq.
|
Whether to run dnsmasq.
|
||||||
@ -35,14 +36,16 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
resolveLocalQueries = mkOption {
|
resolveLocalQueries = mkOption {
|
||||||
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
description = ''
|
description = ''
|
||||||
Whether dnsmasq should resolve local queries (i.e. add 127.0.0.1 to
|
Whether dnsmasq should resolve local queries (i.e. add 127.0.0.1 to
|
||||||
/etc/resolv.conf)
|
/etc/resolv.conf).
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
servers = mkOption {
|
servers = mkOption {
|
||||||
|
type = types.listOf types.string;
|
||||||
default = [];
|
default = [];
|
||||||
example = [ "8.8.8.8" "8.8.4.4" ];
|
example = [ "8.8.8.8" "8.8.4.4" ];
|
||||||
description = ''
|
description = ''
|
||||||
@ -51,11 +54,11 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
extraConfig = mkOption {
|
extraConfig = mkOption {
|
||||||
type = types.string;
|
type = types.lines;
|
||||||
default = "";
|
default = "";
|
||||||
description = ''
|
description = ''
|
||||||
Extra configuration directives that should be added to
|
Extra configuration directives that should be added to
|
||||||
<literal>dnsmasq.conf</literal>
|
<literal>dnsmasq.conf</literal>.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -81,7 +84,7 @@ in
|
|||||||
};
|
};
|
||||||
|
|
||||||
systemd.services.dnsmasq = {
|
systemd.services.dnsmasq = {
|
||||||
description = "dnsmasq daemon";
|
description = "Dnsmasq Daemon";
|
||||||
after = [ "network.target" "systemd-resolved.service" ];
|
after = [ "network.target" "systemd-resolved.service" ];
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
path = [ dnsmasq ];
|
path = [ dnsmasq ];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user