From a2659bfdc47f7066e46518515ba3c8022d6a2f4f Mon Sep 17 00:00:00 2001 From: hashirama Date: Mon, 10 Jun 2024 21:09:24 +0000 Subject: [PATCH] fix cronjob --- config.scm | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/config.scm b/config.scm index 36efd74..1a421af 100644 --- a/config.scm +++ b/config.scm @@ -1,4 +1,4 @@ -;; This is an operating system configuration generated +; This is an operating system configuration generated ;; by the graphical installer. ;; ;; Once installation is complete, you can learn and modify @@ -92,7 +92,7 @@ -(use-service-modules cups desktop networking ssh xorg linux certbot shepherd configuration web) +(use-service-modules cups desktop networking ssh xorg linux certbot shepherd configuration web nix) (use-package-modules version-control gcc bash certs admin linux ) @@ -238,6 +238,8 @@ KERNEL==\"xpad\", SUBSYSTEM==\"drivers\", ACTION==\"add\", ATTR{new_id}=\"2dc8 3 emacs-telega emacs-sly emacs-ccls + emacs-lsp-mode + emacs-lsp-ui emacs-rmsbolt sbcl emacs-nerd-icons @@ -303,15 +305,15 @@ KERNEL==\"xpad\", SUBSYSTEM==\"drivers\", ACTION==\"add\", ATTR{new_id}=\"2dc8 3 (set-xorg-configuration (xorg-configuration (keyboard-layout keyboard-layout))) (udev-rules-service '8bitdo %8bitdo-udev-rules) - + + (service nix-service-type) #| Compress my mpv screenshots periodically |# (service mcron-service-type (mcron-configuration - (jobs (list #~(job "0 14 * * *" - "find /mnt/Data/mpv-screenshots/ -type f \\( -iname '.png' -o -iname '.jpg' \\) -exec sh -c 'cwebp -q 80 \"$0\" -o \"${0%.*}.webp\" && rm \"$0\"' {} \\;"))))) - - + (jobs (list #~(job "10 15 * * *" + "find /mnt/Data/mpv-screenshots/ -type f \\( -iname '*.png' -o -iname '*.jpg' \\) -exec sh -c 'cwebp -q 80 \"$0\" -o \"${0%.*}.webp\" && rm \"$0\"' {} \\;"))))) + ) %desktop-services)