diff options
author | Peter Hoeg <peter@hoeg.com> | 2021-04-27 17:10:27 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2021-04-29 09:37:17 +0800 |
commit | ce93de4f62940d9081ed441507ea10197f6f88cd (patch) | |
tree | e036120626166978445604dd7f2b2fbee1223524 /nixos/modules/virtualisation/hyperv-guest.nix | |
parent | 01d55fcd5ede7bb2f9ba85f9ef4d0e5d02bdd134 (diff) |
nixos/hyperv: bail gracefully if device is missing
Diffstat (limited to 'nixos/modules/virtualisation/hyperv-guest.nix')
-rw-r--r-- | nixos/modules/virtualisation/hyperv-guest.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/nixos/modules/virtualisation/hyperv-guest.nix b/nixos/modules/virtualisation/hyperv-guest.nix index a3656c307f963..b3bcfff19807f 100644 --- a/nixos/modules/virtualisation/hyperv-guest.nix +++ b/nixos/modules/virtualisation/hyperv-guest.nix @@ -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" ]; }; |