How to disable swap?

Maybe. However, if he always overwrites the configuration files, then why are they needed? It turns out the system can not be configured for the user. In other Linux distributions, when updating packages, the system, upon detecting changes in standard configs, offers to choose to leave the old configuration, rewrite it with a new one and even combine the old with the new one. So I hope this is supported here too.