summary refs log tree commit diff
path: root/nixos/modules
diff options
context:
space:
mode:
authorStephen Huan <stephen03.huan@gmail.com>2023-11-01 16:47:11 -0400
committerStephen Huan <stephen03.huan@gmail.com>2023-11-01 16:47:11 -0400
commit09cc3285cc6aaf641ad1f61f3100358cd7afe048 (patch)
tree623e72b11fe3accc78d9f8b03ac43228aa634894 /nixos/modules
parentf99e5f03cc0aa231ab5950a15ed02afec45ed51a (diff)
downloadnixpkgs-09cc3285cc6aaf641ad1f61f3100358cd7afe048.tar
nixpkgs-09cc3285cc6aaf641ad1f61f3100358cd7afe048.tar.gz
nixpkgs-09cc3285cc6aaf641ad1f61f3100358cd7afe048.tar.bz2
nixpkgs-09cc3285cc6aaf641ad1f61f3100358cd7afe048.tar.lz
nixpkgs-09cc3285cc6aaf641ad1f61f3100358cd7afe048.tar.xz
nixpkgs-09cc3285cc6aaf641ad1f61f3100358cd7afe048.tar.zst
nixpkgs-09cc3285cc6aaf641ad1f61f3100358cd7afe048.zip
nixos/mullvad-vpn: use resolvconf if enabled
Diffstat (limited to 'nixos/modules')
-rw-r--r--nixos/modules/services/networking/mullvad-vpn.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/mullvad-vpn.nix b/nixos/modules/services/networking/mullvad-vpn.nix
index 82e68bf92af..00289f1d917 100644
--- a/nixos/modules/services/networking/mullvad-vpn.nix
+++ b/nixos/modules/services/networking/mullvad-vpn.nix
@@ -65,7 +65,9 @@ with lib;
         pkgs.iproute2
         # Needed for ping
         "/run/wrappers"
-      ];
+        # See https://github.com/NixOS/nixpkgs/issues/262681
+      ] ++ (lib.optional config.networking.resolvconf.enable
+        config.networking.resolvconf.package);
       startLimitBurst = 5;
       startLimitIntervalSec = 20;
       serviceConfig = {