From cdc48508d396d110558a6bea436b167136d717bb Mon Sep 17 00:00:00 2001 From: Astro Date: Sat, 3 Aug 2024 16:45:22 +0200 Subject: [PATCH] nixos-modules/host: specify not only dependencies but also order for microvm@.service Fixes Github issue #260 --- nixos-modules/host/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/nixos-modules/host/default.nix b/nixos-modules/host/default.nix index a509b625..875db467 100644 --- a/nixos-modules/host/default.nix +++ b/nixos-modules/host/default.nix @@ -321,7 +321,13 @@ in "microvm-pci-devices@%i.service" "microvm-virtiofsd@%i.service" ]; - after = [ "network.target" ]; + after = [ + "network.target" + "microvm-tap-interfaces@%i.service" + "microvm-macvtap-interfaces@%i.service" + "microvm-pci-devices@%i.service" + "microvm-virtiofsd@%i.service" + ]; unitConfig.ConditionPathExists = "${stateDir}/%i/current/bin/microvm-run"; restartIfChanged = false; preStart = ''