How to enable I2C on rpi3?

My sdcard broke and I had to use a backup from july 2019. I tried your suggestion again but without any luck this time…

osmc@SkyPi3:~$ cat /boot/config.txt
gpu_mem_1024=256
hdmi_ignore_cec_init=1
disable_overscan=1
start_x=1
disable_splash=1
gpu_mem_256=112
sdtv_aspect=1
gpu_mem_512=144
dtparam=i2c_arm=on
dtoverlay=gpio-ir,gpio_pin=18

osmc@SkyPi3:~$ sudo i2cdetect -y 1
Error: Could not open file `/dev/i2c-1' or `/dev/i2c/1': No such file or directory

I think I remember at some point I also tried changing the gpio pin functionality to i2c with a command but I can’t remember what that command was exactly. Any idea why it’s not working?