Precautionary alterations in the key signature

Hello.

I want to change my key signature from D Major to d minor, but I want to show the two precautionary alterations on the new armor (blue square).

How can I achieve it? I have looked in “notation options”, but I did not find that concrete option.

Thank you.

This should work?