diff options
author | Maximilian Bosch <maximilian@mbosch.me> | 2022-11-02 11:54:07 +0100 |
---|---|---|
committer | Maximilian Bosch <maximilian@mbosch.me> | 2022-11-20 18:21:35 +0100 |
commit | 957e368f3d822a7892d18da9493a8c1d48ee8bef (patch) | |
tree | c5852004d90aa8e3b199da9de9bae88144341e63 /nixos/doc/manual/release-notes/rl-2211.section.md | |
parent | 8c6c94de4cf1d529079113efda85ad43a0d1556d (diff) |
nixos/grafana: `provision.{datasources,dashboards}` can't be a list anymore
The hack with `either` had the side-effect that the sub-options of the submodule didn't appear in the manual. I decided to remove this because the "migration" isn't that hard, you just need to fix some module declarations. However, `mkRenamedOptionModule` wouldn't work here because it'd create a "virtual" option for the deprecated path (i.e. `services.grafana.provision.{datasources,dashboards}`), but that's the already a new option, i.e. the submodule for the new stuff. To make sure that you still get errors, I implemented a small hack using `coercedTo` which throws an error if a list is specified (as it would be done on 22.05) which explains what to do instead to make the migration easier. Also, I linkified the options in the manual now to make it easier to navigate between those.
Diffstat (limited to 'nixos/doc/manual/release-notes/rl-2211.section.md')
0 files changed, 0 insertions, 0 deletions