From f5c0ca4eab0d135b6feb74b729a49a467890c404 Mon Sep 17 00:00:00 2001 From: Jacob Bachmann Date: Wed, 25 Sep 2024 12:40:46 +0200 Subject: [PATCH] feat: enable resolved only if vpn is enabled --- modules/core/network.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/core/network.nix b/modules/core/network.nix index e2c2d50..c9f1d8a 100644 --- a/modules/core/network.nix +++ b/modules/core/network.nix @@ -22,7 +22,7 @@ NetworkManager-wait-online.enable = false; }; - services.resolved.enable = true; + services.resolved.enable = config.bchmnn.collections.vpn.enable; environment.systemPackages = lib.optionals (config.bchmnn.collections.vpn.enable) [ pkgs.openvpn3