trust-dns: add a "quiet" option and enable it
This commit is contained in:
parent
0846abb6bf
commit
33d7819619
|
@ -9,6 +9,7 @@
|
|||
"192.168.0.5"
|
||||
"10.0.1.5"
|
||||
];
|
||||
sane.services.trust-dns.quiet = true;
|
||||
|
||||
sane.services.trust-dns.zones."uninsane.org".TTL = 900;
|
||||
|
||||
|
|
|
@ -72,6 +72,10 @@ in
|
|||
default = [];
|
||||
description = "array of ipv4 addresses on which to listen for DNS queries";
|
||||
};
|
||||
quiet = mkOption {
|
||||
type = types.bool;
|
||||
default = false;
|
||||
};
|
||||
# reference <nixpkgs:nixos/modules/services/web-servers/nginx/vhost-options.nix>
|
||||
zones = mkOption {
|
||||
type = types.attrsOf (types.submodule {
|
||||
|
@ -160,10 +164,13 @@ in
|
|||
systemd.services.trust-dns = {
|
||||
description = "trust-dns DNS server";
|
||||
serviceConfig = {
|
||||
ExecStart = ''
|
||||
ExecStart =
|
||||
let
|
||||
flags = lib.optionalString cfg.quiet "-q";
|
||||
in ''
|
||||
${pkgs.trust-dns}/bin/named \
|
||||
--config ${configFile} \
|
||||
--zonedir /
|
||||
--zonedir / ${flags}
|
||||
'';
|
||||
Type = "simple";
|
||||
Restart = "on-failure";
|
||||
|
|
Loading…
Reference in New Issue
Block a user