Allow to configure bootSize
in specialArgs
#368
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Thanks for
nixos-generators
!Fixes: #369
This PR allows to configure the
/boot
partition size on those formats that specify one. It also provides the ability to set the flag from the command line with the--boot-size
parameter that specifies the size of the partition in MB, similar to the--disk-size
parameter.This PR also updates the
qcow-efi.nix
format because it was an outlier in the implementation. It defines module options that are not set in any of the machinery closer to the user. All formats are usingspecialArgs
, except forqcow-efi.nix
.I have seen on #204 that this was one of the suggested changes by @Mic92, but I think it's a bit misleading because those options are disconnected from any setting the user can configure.
Having modules in all formats with their options and whatnot would be a cleaner solution than using
specialArgs
, but I'd tackle that refactor as a specific work on its own. In the meantime, I think it's worth having consistency across different format implementations.All tests are passing locally. I have tested it building a NixOS environment to
qcow-efi
and use it as part of my daily driver, I usually run out of space on my/boot
partition on the VM I work on and while cleaning up works, having a bigger/boot
partition helps.