From 08894b4d8aab6518befd5f813c634b687285031d Mon Sep 17 00:00:00 2001 From: xeji Date: Wed, 7 Mar 2018 18:31:41 +0100 Subject: [PATCH] xen 4.10: link /etc/xen/oxenstored.conf this is required for oxenstored to start --- nixos/modules/virtualisation/xen-dom0.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/nixos/modules/virtualisation/xen-dom0.nix b/nixos/modules/virtualisation/xen-dom0.nix index 11aeb31730e..cf57868acef 100644 --- a/nixos/modules/virtualisation/xen-dom0.nix +++ b/nixos/modules/virtualisation/xen-dom0.nix @@ -241,6 +241,12 @@ in ''; target = "default/xendomains"; } + ] + ++ lib.optionals (builtins.compareVersions cfg.package.version "4.10" >= 0) [ + # in V 4.10 oxenstored requires /etc/xen/oxenstored.conf to start + { source = "${cfg.package}/etc/xen/oxenstored.conf"; + target = "xen/oxenstored.conf"; + } ]; # Xen provides udev rules.