How ? custom app rules an preferences to nvidia x server settings app profiles

how do i correctly add a custom app rules an preferences to nvidia x server settings app profiles for krita an

its open gl settings on linux what are the step by step that i need to follow

an how do i also do this for firefox , celluloid an if possible handbrake

help please if you know ?