mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-01-20 06:37:08 +01:00
services: virtual-build-machine: Add periodic GC job.
* gnu/services/virtualization.scm (%virtual-build-machine-operating-system): Add ‘periodic-gc’ service. Change-Id: Id5bde1ee3f8e1e549e231375e776d3201ec9e0b5
This commit is contained in:
parent
492b3a0c31
commit
cd0dc17e43
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,7 @@ (define-module (gnu services virtualization)
|
|||
#:use-module (gnu services base)
|
||||
#:use-module (gnu services configuration)
|
||||
#:use-module (gnu services dbus)
|
||||
#:use-module (gnu services mcron)
|
||||
#:use-module (gnu services shepherd)
|
||||
#:use-module (gnu services ssh)
|
||||
#:use-module (gnu services)
|
||||
|
@ -1209,6 +1210,11 @@ (define %virtual-build-machine-operating-system
|
|||
(openssh-configuration
|
||||
(openssh openssh-sans-x)))
|
||||
|
||||
;; Run GC once per hour.
|
||||
(simple-service 'perdiodic-gc mcron-service-type
|
||||
(list #~(job "12 * * * *"
|
||||
"guix gc -F 2G")))
|
||||
|
||||
(modify-services %base-services
|
||||
;; By default, the secret service introduces a
|
||||
;; pre-initialized /etc/guix/acl file in the VM. Thus,
|
||||
|
|
Loading…
Reference in a new issue