summaryrefslogtreecommitdiff
path: root/src/Propellor/Property/Laptop.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Propellor/Property/Laptop.hs')
-rw-r--r--src/Propellor/Property/Laptop.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Propellor/Property/Laptop.hs b/src/Propellor/Property/Laptop.hs
index a36bda18..40b3adb9 100644
--- a/src/Propellor/Property/Laptop.hs
+++ b/src/Propellor/Property/Laptop.hs
@@ -26,3 +26,7 @@ powertopAutoTuneOnBoot = setup <!> undo
`requires` check (doesFileExist servicefile)
(Systemd.disabled "powertop")
servicefile = "/etc/systemd/system/powertop.service"
+
+-- | Enables weekly TRIM for SSDs, using systemd's fstrim.timer,
+trimSSD :: Property Linux
+trimSSD = Systemd.enabled "fstrim.timer"