Nixos-option -r fails with a core dump

nixos-option -r > options8_3_2023.txt 2> optionserrors8_3_2023.txt fails with a core dump.

options8_3_2023.txt seems normal, up until the following line:
services.rtsp-simple-server = «error: error:
… while evaluating the attribute ‘value’

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:768:9:

      767|     in warnDeprecation opt //
      768|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;

These are the last lines in that file.

optionserrors8_3_2023.txt seems normal until the following lines:
terminate called after throwing an instance of ‘nix::ThrownError’
what(): error:
… while evaluating the attribute ‘value’

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:768:9:

      767|     in warnDeprecation opt //
      768|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
         |         ^
      769|         inherit (res.defsFinal') highestPrio;

   … while calling the 'addErrorContext' builtin

     at /nix/var/nix/profiles/per-user/root/channels/nixos/lib/modules.nix:768:17:

      767|     in warnDeprecation opt //
      768|       { value = builtins.addErrorContext "while evaluating the option `${showOption loc}':" value;
         |                 ^
      769|         inherit (res.defsFinal') highestPrio;

   (stack trace truncated; use '--show-trace' to show the full trace)

   error: The option `services.rustus.storage.type' is used but not defined.

These are the last lines in that file.

All the preceding lines in optionserrors8_3_2023.txt were warnings about renamed options.

I keep all of my configuration in /etc/nixos/configuration.nix, except for what’s in the auto-generated hardware-configuration.nix file.

system.stateVersion is set to “23.05”, but I’m running on nixos-unstable.