commit e994e25d6e5f8691bda8337487e9c4352d185c5b
parent d0376d41016e0ddbd532b63f7fd3b2f4fcbcdf37
Author: Peter Collingbourne <peter@pcc.me.uk>
Date: Sat, 2 May 2026 23:22:51 -0700
Avoid dependency on specific PCI addresses in qemu config
These addresses will vary depending on the target architecture,
so let's name them via /bus instead.
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/devices/families/qemu.nix b/devices/families/qemu.nix
@@ -42,11 +42,11 @@
in
{
wan = link.build {
- devpath = "/devices/pci0000:00/0000:00:12.0/virtio0";
+ devpath = "/bus/virtio/devices/virtio0";
ifname = "wan";
};
lan = link.build {
- devpath = "/devices/pci0000:00/0000:00:13.0/virtio1";
+ devpath = "/bus/virtio/devices/virtio1";
ifname = "lan";
};