Nixos-rebuild switch does not include file in /nix/store

I’ve got an issue with my scanner, it is described here.
I found out, that the file I’m providing for the scanner does not show up in the store when rebuilding. How can I troubleshoot/resolve that and make sure the necessary file will be on the store?

Hosted by Flying Circus.