Skip to content

Commit

Permalink
nixos-modules/host: specify not only dependencies but also order for …
Browse files Browse the repository at this point in the history
…microvm@.service

Fixes Github issue #260
  • Loading branch information
astro committed Aug 3, 2024
1 parent e19dc8f commit dc326ff
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion nixos-modules/host/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ''
Expand Down

0 comments on commit dc326ff

Please sign in to comment.