operating-systems: buer: Use service instead of simple-service for mcron

sioyek
Luis Guilherme Coelho 2024-02-16 11:41:08 -03:00
parent 50e999c21f
commit ba49d84448
No known key found for this signature in database
GPG Key ID: 1F2E76ACE3F531C8
1 changed files with 9 additions and 9 deletions

View File

@ -50,16 +50,15 @@
#|P|# #:use-module (radix services pm)
#|Radix system|#
#|S|# #:use-module (radix system setuid)
#|S|# #:use-module (radix system security)
#:use-module (radix system setuid)
#|M|# #:use-module (radix system monitoring)
#|Buer files|#
#|S|# #:use-module ((buer files substitute-keys) #:prefix public-key:)
#|T|# #:use-module ((buer files thinkfan) #:prefix file:thinkfan-)
#|Kicksecure configurations|#
#|K|# #:use-module (radix modules kicksecure-configs)
#|SRFI's|#
#:use-module (srfi srfi-1)
@ -91,8 +90,8 @@
(kernel-arguments
(cons* "modprobe.blacklist=usbmouse,usbkbd,pcspkr"
"thinkpad_acpi.fan_control=1"
(kicksecure-delete %kicksecure-kernel-arguments
"debugfs")))
(kicksecure-delete "debugfs"
%kicksecure-kernel-arguments)))
(file-systems
(cons* (file-system
@ -218,9 +217,10 @@
(compression `(("zstd" 3)))))
#|Mcron service|#
(simple-service 'mcron-jobs mcron-service-type
(list #~(job "5 0 * * *"
"guix gc --optimize --free-space=5G")))
(service mcron-service-type
(mcron-configuration
(jobs (list #~(job "5 0 * * *"
"guix gc --optimize --free-space=5G")))))
#|Device management services|#
(service udev-service-type