...
Paste this configuration into a text file on O2 somewhere (for example at the current working directory), and save it as something like nextflow_slurm.config
. You can then invoke your pipeline using nextflow ... -c nextflow_slurm.config -profile cluster,singularity
to prioritize this configuration file above (in addition to) the existing workflow configurations.
...