I have my RPI4 running LE 9.2.3 and have a Eluteng USB3 to SATA adapter (ASMedia based) connected to a WD 500GB SSD. I use the SSD to store the recordings that TVH addon produces.
Everything is working but I wanted to make sure SSD TRIM works properly. I created the udev rules file in /etc/udev/rules.d to support trim and unmap using the same one I use on Raspberry PI OS (32bit) and this allowed me to run fstrim -v /var/media/path-to-mounted-ssd and that worked.
What is different on LE is there is no fstrim.timer service. On Raspberry PI OS I would enable the weekly timer by sudo systemctl enable fstrim.timer and the trim function would happen weekly.
Any advice on implementing the fstrim.timer in LE? Maybe copy the fstrim.timer exactly from Raspberry PI OS? Where should that be put on LE??