Link Xen scripts to /etc/xen

authored by Thomas Strobel and committed by Rok Garbas a6e12c23 36a1d2d4

+8 -6
+8 -6
nixos/modules/virtualisation/xen-dom0.nix
··· 6 6 7 7 let 8 8 cfg = config.virtualisation.xen; 9 - xen = pkgs.xen; 10 9 in 11 10 12 11 { ··· 88 87 message = "Xen currently does not support EFI boot"; 89 88 } ]; 90 89 91 - virtualisation.xen.stored = mkDefault "${xen}/bin/oxenstored"; 90 + virtualisation.xen.stored = mkDefault "${pkgs.xen}/bin/oxenstored"; 92 91 93 - environment.systemPackages = [ xen ]; 92 + environment.systemPackages = [ pkgs.xen ]; 94 93 95 94 # Make sure Domain 0 gets the required configuration 96 95 #boot.kernelPackages = pkgs.boot.kernelPackages.override { features={xen_dom0=true;}; }; ··· 122 121 123 122 system.extraSystemBuilderCmds = 124 123 '' 125 - ln -s ${xen}/boot/xen.gz $out/xen.gz 124 + ln -s ${pkgs.xen}/boot/xen.gz $out/xen.gz 126 125 echo "${toString cfg.bootParams}" > $out/xen-params 127 126 ''; 128 127 ··· 158 157 159 158 160 159 environment.etc = 161 - [ { source = "${xen}/etc/xen/xl.conf"; 160 + [ { source = "${pkgs.xen}/etc/xen/xl.conf"; 162 161 target = "xen/xl.conf"; 163 162 } 163 + { source = "${pkgs.xen}/etc/xen/scripts"; 164 + target = "xen/scripts"; 165 + } 164 166 ]; 165 167 166 168 # Xen provides udev rules. 167 - services.udev.packages = [ xen ]; 169 + services.udev.packages = [ pkgs.xen ]; 168 170 169 171 services.udev.path = [ pkgs.bridge-utils pkgs.iproute ]; 170 172