The problem described in this issue Appending an optional string / array causes the entire expression to be reformatted · Issue #228 · NixOS/nixfmt · GitHub got already reported multiple times by different people over the last months and keeps coming up as a major bug that should be fixed before this.
4 Likes