fix cronjob

main
hashirama 2024-06-10 21:09:24 +00:00
parent 96f363cff4
commit a2659bfdc4
1 changed files with 9 additions and 7 deletions

View File

@ -1,4 +1,4 @@
;; This is an operating system configuration generated ; This is an operating system configuration generated
;; by the graphical installer. ;; by the graphical installer.
;; ;;
;; Once installation is complete, you can learn and modify ;; 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 ) (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-telega
emacs-sly emacs-sly
emacs-ccls emacs-ccls
emacs-lsp-mode
emacs-lsp-ui
emacs-rmsbolt emacs-rmsbolt
sbcl sbcl
emacs-nerd-icons emacs-nerd-icons
@ -303,15 +305,15 @@ KERNEL==\"xpad\", SUBSYSTEM==\"drivers\", ACTION==\"add\", ATTR{new_id}=\"2dc8 3
(set-xorg-configuration (set-xorg-configuration
(xorg-configuration (keyboard-layout keyboard-layout))) (xorg-configuration (keyboard-layout keyboard-layout)))
(udev-rules-service '8bitdo %8bitdo-udev-rules) (udev-rules-service '8bitdo %8bitdo-udev-rules)
(service nix-service-type)
#| Compress my mpv screenshots periodically |# #| Compress my mpv screenshots periodically |#
(service mcron-service-type (service mcron-service-type
(mcron-configuration (mcron-configuration
(jobs (list #~(job "0 14 * * *" (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\"' {} \\;"))))) "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) %desktop-services)