nixpkgs/nixos/modules
Maximilian Bosch 957e368f3d
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.
2022-11-20 18:21:35 +01:00
..
config nixos/users-groups: Warn about deprecated hashes at activation 2022-11-19 14:07:59 +01:00
hardware treewide: use mkEnableOption in nixos modules 2022-11-10 09:30:00 +01:00
i18n/input-method nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
installer installation-cd: Remove libsForQt5.full 2022-11-19 19:12:37 -05:00
misc automatic-timezoned: init at 1.0.41 2022-11-16 15:26:21 -08:00
profiles nixos/profiles/minimal: don't install freedesktop files 2022-10-21 14:54:38 +02:00
programs Merge pull request #196773 from bobvanderlinden/pr-steam-package 2022-11-18 13:08:39 +01:00
security Merge pull request #199587 from lorenz/fscrypt 2022-11-14 09:42:35 +01:00
services nixos/grafana: provision.{datasources,dashboards} can't be a list anymore 2022-11-20 18:21:35 +01:00
system Merge pull request #197254 from Atemu/fstab-escape-options 2022-11-19 18:08:40 +01:00
tasks Merge pull request #197254 from Atemu/fstab-escape-options 2022-11-19 18:08:40 +01:00
testing nixos/*: convert internal option descriptions to MD 2022-08-31 16:32:54 +02:00
virtualisation Merge pull request #185129 from Munksgaard/fix-nixos-container 2022-11-17 22:13:44 +13:00
module-list.nix surrealdb: module init 2022-11-19 18:58:04 -05:00
rename.nix dd-agent: remove 2022-09-14 14:11:14 +02:00