Skip to content

Commit

Permalink
nixos: xen: condition default packages on enable
Browse files Browse the repository at this point in the history
Closes #23690.
  • Loading branch information
oxij authored and globin committed Mar 24, 2017
1 parent ae1034e commit 2822bac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nixos/modules/virtualisation/xen-dom0.nix
Expand Up @@ -29,7 +29,6 @@ in

virtualisation.xen.package = mkOption {
type = types.package;
default = pkgs.xen;
defaultText = "pkgs.xen";
example = literalExample "pkgs.xen-light";
description = ''
Expand All @@ -39,7 +38,6 @@ in

virtualisation.xen.qemu = mkOption {
type = types.path;
default = "${pkgs.xen}/lib/xen/bin/qemu-system-i386";
defaultText = "\${pkgs.xen}/lib/xen/bin/qemu-system-i386";
example = literalExample "''${pkgs.qemu_xen-light}/bin/qemu-system-i386";
description = ''
Expand All @@ -49,7 +47,6 @@ in

virtualisation.xen.qemu-package = mkOption {
type = types.package;
default = pkgs.xen;
defaultText = "pkgs.xen";
example = literalExample "pkgs.qemu_xen-light";
description = ''
Expand Down Expand Up @@ -136,6 +133,9 @@ in
message = "Xen currently does not support EFI boot";
} ];

virtualisation.xen.package = mkDefault pkgs.xen;
virtualisation.xen.qemu = mkDefault "${pkgs.xen}/lib/xen/bin/qemu-system-i386";
virtualisation.xen.qemu-package = mkDefault pkgs.xen;
virtualisation.xen.stored = mkDefault "${cfg.package}/bin/oxenstored";

environment.systemPackages = [ cfg.package ];
Expand Down

0 comments on commit 2822bac

Please sign in to comment.