Loading
nixos/kubo: IFD-less merging of defaults
No more IFD for the defaults.
Specifically the merging with the config values is now done at runtime.
The output of the command for generating the defaults is also specifically stripped of the generated credentials, making it reproducible.
This introduces caveats in terms of overwriting as it is now dependent on jq's merge behaviour.
A cleaner solution would probably move from specifying a single JSON-esque datastructure to specifying an attrset with keys and values being those of `ipfs config set` respectively.
This would allow setting individual keys to objects, removing entries, and more fine grained control in general.
However that would introduce severe backwards incompatibilities, so this commit is merely a "minimum viable fix" so to say.
Signed-off-by:
benaryorg <binary@benary.org>