nix eval --json --pretty .#nixosConfigurations.nemesis.config.home-manager.users.rafiq.xdg.mime
A little breakdown:
nix eval-> Evaluate a Nix expression.--json --pretty-> Print the result as prettified JSON..#nixosConfigrations.nemesis-> The NixOS configuration namednemesisfrom theflake.nixin the current directory.nixosConfigurations.nemesis.config.home-manager.users.rafiq-> The option set for thehome-manageruserrafiq(hey thats me)xdg.mime-> The option set for XDG MIME.
Putting it all together will give you an output like:
{
"desktopFileUtilsPackage": "/nix/store/rfxvyxw9rksbhc2ppypqwv2lm0xz9drd-desktop-file-utils-0.28",
"enable": true,
"sharedMimeInfoPackage": "/nix/store/06m9bsgisc2dnl9dw7l3kzzzc1h862f1-shared-mime-info-2.4"
}
Neat! (this is mostly here because search did not turn up anything)