Deal with virtualisation.xen.stored in a more standard way
commit9bb586943a4665e9dc0af78e2556a7d428f96553
authorEelco Dolstra <eelco.dolstra@logicblox.com>
dateThu 5 Mar 2015, 12:46 (12 years ago)
parent1747972
nixos/modules/virtualisation/xen-dom0.nix+3−2
@@ -59,12 +59,11 @@ in
5959
6060 virtualisation.xen.stored =
6161 mkOption {
62− default = null;
62+ type = types.path;
6363 description =
6464 ''
6565 Xen Store daemon to use. Defaults to oxenstored of the xen package.
6666 '';
67− apply = x: if x == null then "${xen}/bin/oxenstored" else x;
6867 };
6968
7069 virtualisation.xen.trace =
@@ -89,6 +88,8 @@ in
8988 message = "Xen currently does not support EFI boot";
9089 } ];
9190
91+ virtualisation.xen.stored = mkDefault "${xen}/bin/oxenstored";
92+
9293 environment.systemPackages = [ xen ];
9394
9495 # Make sure Domain 0 gets the required configuration