summary refs log tree commit diff stats
path: root/system
diff options
context:
space:
mode:
authorAlan Pearce2019-11-29 20:40:22 +0100
committerAlan Pearce2019-11-29 20:40:22 +0100
commitfba586fa51e7d02860a39caf28012825ba29b761 (patch)
tree7c64a6fc8bc6d8de27467b448ac40893d6d79bee /system
parent9ca2beec31c33341e946fdc35ffd4328d8fa2f0c (diff)
downloadnixfiles-fba586fa51e7d02860a39caf28012825ba29b761.tar.lz
nixfiles-fba586fa51e7d02860a39caf28012825ba29b761.tar.zst
nixfiles-fba586fa51e7d02860a39caf28012825ba29b761.zip
nextdns: fix infinite recursion on NixOS
Diffstat (limited to 'system')
-rw-r--r--system/modules/nextdns.nix4
1 files changed, 2 insertions, 2 deletions
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 {});
+    };
   };
 }