In general it's a bad idea to trim on each block free (i.e. using the discard mount option) as that leads to write amplification and will wear out SSDs quickly.
It's better to regularly run "fstrim -a", typically once a week, via a systemd timer.
LE doesn't ship fstrim.service/fstrim.timer systemd files but you can easily add them to /storage/.config/systemd/ and then enable it with "systemctl enable fstrim.timer".
Untested as I don't have any SSDs on my LE devices here, but these should work:
fstrim.service
Code
[Unit]
Description=Discard unused blocks on filesystems
[Service]
Type=oneshot
ExecStart=/usr/sbin/fstrim --all --verbose --quiet-unsupported
fstrim.timer:
Code
[Unit]
Description=Discard unused blocks once a week
[Timer]
OnCalendar=weekly
AccuracySec=1h
Persistent=true
RandomizedDelaySec=6000
[Install]
WantedBy=timers.target
Display More
so long,
Hias