Does nixos-rebuild with targetHost will copy the current directory's file to targetHost?

thanks, but the result has a systemd service that ExecStart is a script pointing to this /nix/store/hash-source/ directory.
more detail: How to deploy custom NixOS module configuration with a flake using nixos-rebuild and keep the relative path of a custom script file?