28 lines
831 B
Nix
28 lines
831 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
boot.growPartition = true;
|
|
system.build.diskImage = import ./make-disk-image.nix {
|
|
name = "${config.networking.hostName}-disk";
|
|
partitionTableType = "efi";
|
|
additionalSpace = "0G";
|
|
copyChannel = false;
|
|
inherit config lib pkgs;
|
|
postVM = ''
|
|
mkdir -p $out/nix-support
|
|
echo file binary-dist $diskImage >> $out/nix-support/hydra-build-products
|
|
'';
|
|
};
|
|
system.build.diskImageLegacy = import ./make-disk-image.nix {
|
|
name = "${config.networking.hostName}-disk";
|
|
partitionTableType = "legacy";
|
|
additionalSpace = "0G";
|
|
copyChannel = false;
|
|
inherit config lib pkgs;
|
|
postVM = ''
|
|
mkdir -p $out/nix-support
|
|
echo file binary-dist $diskImage >> $out/nix-support/hydra-build-products
|
|
'';
|
|
};
|
|
fileSystems."/".autoResize = true;
|
|
}
|