From 6fa85aa6836994f0ac3e0be4690f43ddea33115d Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 12 Jun 2025 12:07:17 -0400 Subject: [PATCH] Revert "linux-builder: remove DNS hack for libslirp" Resolution still fails when on VPN with no IPv6 DNS servers. We'll need to investigate further why the fix doesn't help in this case. This reverts commit f90236a8f2c33cc8814428ac4cda1e77e43c2375. Signed-off-by: Ihar Hrachyshka --- nixos/modules/profiles/nix-builder-vm.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/modules/profiles/nix-builder-vm.nix b/nixos/modules/profiles/nix-builder-vm.nix index 17ccad53297f..50dde02eef64 100644 --- a/nixos/modules/profiles/nix-builder-vm.nix +++ b/nixos/modules/profiles/nix-builder-vm.nix @@ -111,6 +111,14 @@ in }; }; + # DNS fails for QEMU user networking (SLiRP) on macOS. See: + # + # https://github.com/utmapp/UTM/issues/2353 + # + # This works around that by using a public DNS server other than the DNS + # server that QEMU provides (normally 10.0.2.3) + networking.nameservers = [ "8.8.8.8" ]; + # The linux builder is a lightweight VM for remote building; not evaluation. nix.channel.enable = false;