From 8415083eb6acc343dfa404dbbc12fa0171a48a20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Isma=C3=ABl=20Bouya?= Date: Fri, 18 Oct 2019 19:43:39 +0200 Subject: Add new machine to nixops --- modules/private/dns.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/private/dns.nix') diff --git a/modules/private/dns.nix b/modules/private/dns.nix index f0a3a5b..b4772fc 100644 --- a/modules/private/dns.nix +++ b/modules/private/dns.nix @@ -1,5 +1,6 @@ { lib, pkgs, config, myconfig, ... }: { + options.myServices.dns.enable = lib.mkEnableOption "enable DNS resolver"; config = let cfg = config.services.bind; configFile = pkgs.writeText "named.conf" '' @@ -49,8 +50,7 @@ '') cfg.zones } ''; - in - { + in lib.mkIf config.myServices.dns.enable { networking.firewall.allowedUDPPorts = [ 53 ]; networking.firewall.allowedTCPPorts = [ 53 ]; services.bind = { -- cgit v1.2.3