nixos/hyperv: bail gracefully if device is missing

master
Peter Hoeg 2021-04-27 17:10:27 +08:00
parent 01d55fcd5e
commit ce93de4f62
1 changed files with 2 additions and 0 deletions

View File

@ -56,6 +56,8 @@ in {
systemd = {
packages = [ config.boot.kernelPackages.hyperv-daemons.lib ];
services.hv-vss.unitConfig.ConditionPathExists = [ "/dev/vmbus/hv_vss" ];
targets.hyperv-daemons = {
wantedBy = [ "multi-user.target" ];
};