mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 15:56:50 +01:00
10 lines
286 B
Nix
10 lines
286 B
Nix
# QEMU flags shared between various Nix expressions.
|
|
|
|
{
|
|
|
|
qemuNICFlags = nic: net: machine:
|
|
[ "-net nic,vlan=${toString nic},macaddr=52:54:00:12:${toString net}:${toString machine},model=virtio"
|
|
"-net vde,vlan=${toString nic},sock=$QEMU_VDE_SOCKET_${toString net}"
|
|
];
|
|
|
|
}
|