modules/image: increase the default boot partition size from 512 MiB -> 1024 MiB

This commit is contained in:
Colin 2024-06-07 07:29:50 +00:00
parent aa0a395353
commit d75f59ba06

View File

@ -18,6 +18,7 @@ in
{
options = {
sane.image.enable = mkOption {
# TODO: why is this enable option even needed?
default = true;
type = types.bool;
description = "whether to enable image targets. even so they won't be built unless you specifically reference the `system.build.img` target.";
@ -58,8 +59,13 @@ in
type = types.nullOr types.int;
};
sane.image.bootPartSize = mkOption {
default = 512 * 1024 * 1024;
default = 1024 * 1024 * 1024;
type = types.int;
description = ''
size of the boot partition, in bytes.
don't skimp on this. nixos kernels are by default HUGE, and restricting this
will make kernel tweaking extra painful.
'';
};
sane.image.sectorSize = mkOption {
default = 512;