You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and execute nix build .#nixosConfigurations.HOST.config.formats.sd-aarch64 the following error is thrown:
No target file found for sdImage format
Check the content of this build path: /nix/store/5dy36v03np7kwf58vdpciwmz3n4lwc61-nixos-sd-image-24.11.20240906.574d1ea-aarch64-linux.img
This can be fixed by overriding fileExtension with ".img*" (instead of ".img.*").
It took me quite some time to find what was wrong.
Should we adjust the fileExtension default and maybe provide a few more details in the error message?
I'm not sure it this would be considered a bug.
If one adjust an existing format using
formatConfigs
and changes something that affects the resulting file extension, e.g.,:and execute
nix build .#nixosConfigurations.HOST.config.formats.sd-aarch64
the following error is thrown:This can be fixed by overriding
fileExtension
with".img*"
(instead of".img.*"
).It took me quite some time to find what was wrong.
Should we adjust the
fileExtension
default and maybe provide a few more details in the error message?Code:
nixos-generators/all-formats.nix
Lines 42 to 46 in 5ae384b
The text was updated successfully, but these errors were encountered: