From 337f67109e1cf61940a158063dca64700a91228c Mon Sep 17 00:00:00 2001 From: Ryan Yin Date: Mon, 17 Jul 2023 17:31:59 +0800 Subject: [PATCH] fix: DNS for WireGuard on macOS --- secrets/darwin.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/secrets/darwin.nix b/secrets/darwin.nix index 1b947c81..82251d9f 100644 --- a/secrets/darwin.nix +++ b/secrets/darwin.nix @@ -32,6 +32,8 @@ # place secrets in /etc/ environment.etc = { # wireguard config used with `wg-quick up wg-business` + # Fix DNS for WireGuard on macOS: https://ivans.io/wireguard-on-macos/ + # sudo /usr/sbin/networksetup -setdnsservers Wi-Fi "Empty" "wireguard/wg-business.conf" = { source = config.age.secrets."wg-business.conf".path; };