config: filter NixOS configuration

With images that are only exported as ISO (or even without one) are
included as part of NixOS configurations.

The idea with this attribute seems to be closer for deploying and
installing them with `nixos-install` which most of them aren't. This
might be reverted at some point. It's not clear to me yet.
This commit is contained in:
Gabriel Arazas 2023-06-29 13:51:21 +08:00
parent a91a9fe110
commit e95927c83b
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -304,7 +304,7 @@
system = metadata.system or defaultSystem;
nixpkgs-channel = metadata.nixpkgs-channel or "nixpkgs";
})
images;
(lib'.filterAttrs (name: host: (host.format or "iso") == "iso") images);
# We're going to make our custom modules available for our flake. Whether
# or not this is a good thing is debatable, I just want to test it.