mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 16:33:15 +00:00
80712f254c
diskSize defaults to the previous hard-coded 8192: no change for existing users. Users can set diskSize when building images which require larger disk space; thus avoiding the error: ERROR: cptofs failed. diskSize might be too small for closure. Signed-off-by: Sirio Balmelli <sirio@b-ad.ch> Co-authored-by: superherointj <5861043+superherointj@users.noreply.github.com>
21 lines
450 B
Nix
21 lines
450 B
Nix
{ config, lib, pkgs, ... }:
|
|
{
|
|
options = {
|
|
oci = {
|
|
efi = lib.mkOption {
|
|
default = true;
|
|
internal = true;
|
|
description = ''
|
|
Whether the OCI instance is using EFI.
|
|
'';
|
|
};
|
|
diskSize = lib.mkOption {
|
|
type = lib.types.int;
|
|
default = 8192;
|
|
description = "Size of the disk image created in MB.";
|
|
example = "diskSize = 12 * 1024; # 12GiB";
|
|
};
|
|
};
|
|
};
|
|
}
|