fix: DNS for WireGuard on macOS

This commit is contained in:
Ryan Yin
2023-07-17 18:06:27 +08:00
parent 337f67109e
commit edff2bdc6c
2 changed files with 46 additions and 47 deletions
+1 -2
View File
@@ -32,8 +32,7 @@
# 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"
# Fix DNS for WireGuard on macOS: https://github.com/ryan4yin/nix-config/issues/5
"wireguard/wg-business.conf" = {
source = config.age.secrets."wg-business.conf".path;
};