nixos/vms: Fix QEMU attempting to execute netdev downscript

This commit is contained in:
Jack O'Sullivan 2022-06-19 13:10:55 +01:00
parent 75ce0a5ba9
commit 7234d2c96f

View File

@ -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: [