So on NixOS we can edit the file /etc/nixos/configuration.nix to specify our "input" system configuration. However, when we run nixos-rebuild switch to build and activate our "input" configuration, then strictly speaking, the actual configuration activated will not exactly be what we had in our "input", but an "output" configuration based on that "input".
Specifically, certain miscellaneous configuration parameters can cause the NixOS logic to insert configuration for additional services not strictly specified in the "input" configuration. Like for example, this here https://github.com/NixOS/nixpkgs/blob/724ed08df02546fea2ab38613d615dd47461528c/nixos/modules/services/web-apps/wordpress.nix#L279 is some NixOS logic that inserts configuration for the MySQL / MariaDB service into the final "output" system configuration, but not because MySQL service was requested in the "input" configuration directly, but because WordPress configuration was specified, and the MySQL service is being activated automatically to facilitate the running of the WordPress instance.
My question is, does anybody know what would be the command or procedure to see this "final" generated "output" configuration that would be the actual configuration built, activated, and running by the system after nixos-rebuild switch?
This would be useful for troubleshooting to be able to assess everything that is running and the actual configuration that it is running with.