File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 3
3
, lib
4
4
, extendModules
5
5
, options
6
+ , pkgs
6
7
, ...
7
8
} :
8
9
let
11
12
inherit ( cfg ) pkgs imageFormat ;
12
13
checked = diskoCfg . checkScripts ;
13
14
15
+ xcp' = pkgs . callPackage ../xcp.nix {
16
+ inherit ( pkgs ) xcp ;
17
+ } ;
18
+
14
19
configSupportsZfs = config . boot . supportedFilesystems . zfs or false ;
15
20
vmTools = pkgs . vmTools . override
16
21
{
46
51
util-linux
47
52
findutils
48
53
kmod
54
+ xcp'
49
55
] ++ cfg . extraDependencies ;
50
56
preVM = ''
51
57
${ lib . concatMapStringsSep "\n " ( disk : "${ pkgs . qemu } /bin/qemu-img create -f ${ imageFormat } ${ disk . imageName } .${ imageFormat } ${ disk . imageSize } " ) ( lib . attrValues diskoCfg . devices . disk ) }
94
100
95
101
# We copy files with cp because `nix copy` seems to have a large memory leak
96
102
mkdir -p ${ systemToInstall . config . disko . rootMountPoint } /nix/store
97
- xargs cp --recursive --target ${ systemToInstall . config . disko . rootMountPoint } /nix/store < ${ closureInfo } /store-paths
103
+ xargs xcp --recursive --target-directory ${ systemToInstall . config . disko . rootMountPoint } /nix/store < ${ closureInfo } /store-paths
98
104
99
105
${ systemToInstall . config . system . build . nixos-install } /bin/nixos-install --root ${ systemToInstall . config . disko . rootMountPoint } --system ${ systemToInstall . config . system . build . toplevel } --keep-going --no-channel-copy -v --no-root-password --option binary-caches ""
100
106
umount -Rv ${ systemToInstall . config . disko . rootMountPoint }
You can’t perform that action at this time.
0 commit comments