nixos/hyperv: bail gracefully if device is missing

This commit is contained in:
Peter Hoeg 2021-04-27 17:10:27 +08:00
parent 01d55fcd5e
commit ce93de4f62

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" ];
};