TrueNas Scale as a Wireguard client

I have to tell, if you run an update to a newer version you have to drive to the metal and reinstall your wireguard. After the last 3 updates every time my /etc/wireguard/wg0-client.conf was gone. I have no clue how to make that persistent…