summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tw/system.scm7
-rw-r--r--tw/system/lud.scm7
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