From 6fb9686b7adb23a04589a1add457810f55bff650 Mon Sep 17 00:00:00 2001 From: Markus Schmidl Date: Sun, 29 May 2022 15:35:14 +0200 Subject: [PATCH] only grow partition in the disk image --- flake.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/flake.nix b/flake.nix index 5205743..a70e59d 100644 --- a/flake.nix +++ b/flake.nix @@ -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