From fba586fa51e7d02860a39caf28012825ba29b761 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Fri, 29 Nov 2019 20:40:22 +0100 Subject: nextdns: fix infinite recursion on NixOS --- system/modules/nextdns.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'system') diff --git a/system/modules/nextdns.nix b/system/modules/nextdns.nix index 7db03b1b..830215e6 100644 --- a/system/modules/nextdns.nix +++ b/system/modules/nextdns.nix @@ -89,8 +89,8 @@ in }; services = { stubby = mkIf (cfg.resolver == "stubby") stubbyConfig; - } // (if !stdenv.isDarwin then { + } // mkIf (!stdenv.isDarwin) { kresd = mkIf (cfg.resolver == "kresd") kresdConfig; - } else {}); + }; }; } -- cgit 1.4.1