The transaction only has one input, where its scriptPubKey is --> Op_1 Q , where Q is the tweaked public key.
Let p = private key, P = Public key, q = p + tweak, Q = tweaked Public key
To create the transaction you have to populate the witness field:
Key Path Spend: Do you use q (the tweaked private key) to sign the transaction?
That is, s = k + H(R,Q, txdata)q and sig is (R,s) where k is the nonce
Script Path Spend: Do you use p (untweaked internal private key) to sign the transaction
That is, s = q + h(Q,P, txdata)p and sig is (Q,s) where q is now the nonce
I am not a coder so trying to find the answer to this has been difficult given that I think you would need to code to understand how the mechanics works.