diff options
author | Timo Wilken | 2023-05-20 16:16:21 +0200 |
---|---|---|
committer | Timo Wilken | 2023-05-20 16:16:21 +0200 |
commit | 8d654d059f0b85b5d2eb3aa92cf2a6ec689b56c6 (patch) | |
tree | 7aa6fdc4e3cabd68f4d916839375e3bc96181c8d /tw | |
parent | 8bce5a566bc0e909ac94d03bd8a07f06aad13b17 (diff) |
Stop fstrimming on SSD-less vin
Diffstat (limited to 'tw')
-rw-r--r-- | tw/system.scm | 7 | ||||
-rw-r--r-- | tw/system/lud.scm | 7 |
2 files changed, 8 insertions, 6 deletions
diff --git a/tw/system.scm b/tw/system.scm index f7ac429c..4df665f8 100644 --- a/tw/system.scm +++ b/tw/system.scm @@ -71,11 +71,8 @@ (web-listen-address (server-wireguard-address host-name 9100)))) - (simple-service 'disk-maintenance mcron-service-type - (list #~(job "0 2 * * *" "guix gc -d 2w") - #~(job "0 4 * * *" ; after guix gc - (string-append #$(file-append util-linux "/sbin/fstrim") - " --fstab --verbose")))) + (simple-service 'guix-gc mcron-service-type + (list #~(job "0 2 * * *" "guix gc -d 2w"))) ;; Network setup (service dhcp-client-service-type) diff --git a/tw/system/lud.scm b/tw/system/lud.scm index 8412c3a8..2dbb512e 100644 --- a/tw/system/lud.scm +++ b/tw/system/lud.scm @@ -170,7 +170,12 @@ innodb_io_capacity = 4000 ;; TODO: JSON exporter (Nextcloud) ;; TODO: Syncthing exporter ;; TODO: Transmission exporter - ) + + ;; Only this server has SSDs, not vin. + (simple-service 'fstrim mcron-service-type + (list #~(job "0 4 * * *" ; after guix gc + (string-append #$(file-append util-linux "/sbin/fstrim") + " --fstab --verbose"))))) %nextcloud-services %matrix-services |