only grow partition in the disk image

This commit is contained in:
Markus Schmidl 2022-05-29 15:35:14 +02:00 committed by Grigory Shipunov
parent f4e26baa45
commit 6fb9686b7a
1 changed files with 5 additions and 3 deletions

View File

@ -83,13 +83,15 @@
];
diskModule = { config, lib, pkgs, ... }: {
boot.growPartition = true;
system.build.diskImage = import "${nixpkgs}/nixos/lib/make-disk-image.nix" {
name = "${config.networking.hostName}-disk";
partitionTableType = "efi";
additionalSpace = "2G";
inherit config lib pkgs;
copyChannel = false;
config = config // {
boot.growPartition = true;
};
inherit lib pkgs;
postVM = ''
mkdir -p $out/nix-support
echo file binary-dist $diskImage >> $out/nix-support/hydra-build-products