From 7234d2c96f8646dc8c3e02cf4230b0d6148a2b68 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sun, 19 Jun 2022 13:10:55 +0100 Subject: [PATCH] nixos/vms: Fix QEMU attempting to execute netdev downscript --- nixos/modules/vms.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/vms.nix b/nixos/modules/vms.nix index eba67f6..03c299f 100644 --- a/nixos/modules/vms.nix +++ b/nixos/modules/vms.nix @@ -168,7 +168,7 @@ let ]) ++ (optional i.spice.enable "spice unix=on,addr=/run/vms/${n}/spice.sock,disable-ticketing=on") ++ (flatten (mapAttrsToList (nn: c: [ - "netdev tap,id=${nn},ifname=${c.ifname},script=no" + "netdev tap,id=${nn},ifname=${c.ifname},script=no,downscript=no" ("device ${c.model},netdev=${nn},mac=${c.mac}" + (extraQEMUOpts c.extraOptions)) ]) i.networks)) ++ (flatten (map (d: [