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