error: value is the partially applied built-in function 'mapAttrs' while a set was expected
at /nix/store/22aq7ifkxk95achgwbb8ygjklgcwygvn-source/lib/modules.nix:476:44:
475| options = {};
476| config = addFreeformType (addMeta (removeAttrs m ["_file" "key" "disabledModules" "require" "imports" "freeformType"]));
| ^
477| };
(use '--show-trace' to show detailed location information)
/run/current-system/sw/bin/nixos-container: failed to build container from flake '.'
From the description that looks correct to me. If you figure it out please update the option to contain an example that demonstrates this more clearly.
To clarify: you can’t reproduce this/provide an example which does reproduce this error, right? If not, that’s fine, but if you can I’d be interested in looking into it.