mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-19 22:26:01 +02:00
only grow partition in the disk image
This commit is contained in:
parent
f4e26baa45
commit
6fb9686b7a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user