From 92970e8ed08508d7819fbb7774be98cdfc609c2d Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Thu, 31 Aug 2023 23:50:42 +0100 Subject: [PATCH] qemu: use service-based-module for network interfaces --- devices/qemu/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/devices/qemu/default.nix b/devices/qemu/default.nix index d7c5b20..f1a4728 100644 --- a/devices/qemu/default.nix +++ b/devices/qemu/default.nix @@ -48,19 +48,20 @@ drivers = ["mac80211_hwsim"]; klibBuild = config.system.outputs.kernel.modulesupport; }; - inherit (pkgs.liminix.networking) interface; in { defaultOutput = "vmroot"; flash.eraseBlockSize = "65536"; # c.f. pkgs/mips-vm/mips-vm.sh - networkInterfaces = { - lan = interface { device = "eth0"; }; - wan = interface { device = "eth1"; }; + networkInterfaces = + let inherit (config.system.service.network) link; + in { + lan = link.build { ifname = "eth0"; }; + wan = link.build { ifname = "eth1"; }; - wlan_24 = interface { - device = "wlan0"; - dependencies = [ mac80211 ]; + wlan_24 = link.build { + ifname = "wlan0"; + dependencies = [ mac80211 ]; + }; }; - }; }; };