lsblk --discard to check support and non zero DISC returns mean TRIM supported.
And then you need to add discard options to supported partitions in /etc/fstab. Then enable fstrim.timer with systemctl. And it will automatically run weekly. You can edit the run frequency by editing the fstrim.timer file.
Edited
lsblk --discardto check support and non zero DISC returns mean TRIM supported.And then you need to addThen enablediscardoptions to supported partitions in /etc/fstab.fstrim.timerwithsystemctl. And it will automatically run weekly. You can edit the run frequency by editing thefstrim.timerfile.This is what I have done from reading Arch wiki. https://wiki.archlinux.org/title/Solid_state_drive#TRIM