/etc/cron.weekly/fstrim (https://wiki.archlinux.org/title/Solid_state_drive#Usage)
I thing daily is much more usefull: Trim doesn't hurt the SSD, but the opposite: It harms it, to hold and shift long deleted data.
Even my 1st SSD from 2015 *) has still 95% remaining livetime: I trim it every time I deleted data, with Win+Shit+W (for "Wartung"). fstrim is in /etc/sudoers
*) I still use it as an external (and everywhere bootable) Copy of my System (with all data and LUKS encryped Home).
dinit here
drizzle-drizzle:[root]:~# lsblk --discard
NAME DISC-ALN DISC-GRAN DISC-MAX DISC-ZERO
sda 0 4K 2G 0
├─sda1 0 4K 2G 0
├─sda2 0 4K 2G 0
Looks like I do have trim compatible.
/dev/sda2 on / type f2fs (rw,noatime,lazytime,background_gc=on,nogc_merge,discard,discard_unit=block,user_xattr,inline_xattr,acl,inline_data,inline_dentry,noflush_merge,barrier,extent_cache,mode=adaptive,active_logs=6,alloc_mode=default,checkpoint_merge,fsync_mode=posix,memory=normal,errors=continue)
I see discard there so it seems I have continuous trim..
Do I have to kinda reverse engineer the systemd trim things into dinit to make this work? or has someone solved this b4?