From d2e7973179a72325cf9b78e5a97da88818033285 Mon Sep 17 00:00:00 2001 From: Robert Cambridge Date: Wed, 22 Apr 2026 08:26:15 +0200 Subject: [PATCH] nixos: fix pkgs used for netcat when qemu-vm.nix does guestfwd --- nixos/modules/virtualisation/qemu-vm.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/qemu-vm.nix b/nixos/modules/virtualisation/qemu-vm.nix index 2a528b036404..b58cdd8ac5f7 100644 --- a/nixos/modules/virtualisation/qemu-vm.nix +++ b/nixos/modules/virtualisation/qemu-vm.nix @@ -1362,7 +1362,7 @@ in + "${guest.address}:${toString guest.port}," else "'guestfwd=${proto}:${guest.address}:${toString guest.port}-" - + "cmd:${pkgs.netcat}/bin/nc ${host.address} ${toString host.port}'," + + "cmd:${hostPkgs.netcat}/bin/nc ${host.address} ${toString host.port}'," ); restrictNetworkOption = lib.optionalString cfg.restrictNetwork "restrict=on,"; in