;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2021, 2023 Andrew Tropin ;;; Copyright © 2021 Xinglu Chen ;;; Copyright © 2022 Maxim Cournoyer ;;; Copyright © 2023 Ludovic Courtès ;;; ;;; This file is part of GNU Guix. ;;; ;;; GNU Guix is free software; you can redistribute it and/or modify it ;;; under the terms of the GNU General Public License as published by ;;; the Free Software Foundation; either version 3 of the License, or (at ;;; your option) any later version. ;;; ;;; GNU Guix is distributed in the hope that it will be useful, but ;;; WITHOUT ANY WARRANTY; without even the implied warranty of ;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;;; GNU General Public License for more details. ;;; ;;; You should have received a copy of the GNU General Public License ;;; along with GNU Guix. If not, see . (define-module (gnu home services mcron) #:use-module (gnu home services) #:use-module (gnu home services shepherd) #:use-module (gnu services mcron) ;for the service mapping #:export (home-mcron-configuration home-mcron-service-type)) ;;; Commentary: ;; ;; Service for the GNU mcron cron job manager. ;; ;; Example configuration, the first job runs mbsync once every ten ;; minutes, the second one writes "Mcron service" to ~/mcron-file once ;; every minute. ;; ;; (service home-mcron-service-type ;; (home-mcron-configuration ;; (jobs (list #~(job '(next-minute ;; (range 0 60 10)) ;; (lambda () ;; (system* "mbsync" "--all"))) ;; #~(job next-minute-from ;; (lambda () ;; (call-with-output-file (string-append (getenv "HOME") ;; "/mcron-file") ;; (lambda (port) ;; (display "Mcron service" port))))))))) ;; ;;; Code: (define-syntax-rule (home-mcron-configuration fields ...) ;; Macro provided for backward compatibility. (for-home (mcron-configuration fields ...))) (define home-mcron-service-type (service-type (inherit (system->home-service-type mcron-service-type)) (default-value (for-home (mcron-configuration))))) (define-service-type-mapping mcron-service-type => home-mcron-service-type) ;;; mcron.scm ends here '/guix/log/gnu/tests/virtualization.scm?id=61f956125f97c49b8f662c97fc7f5102213c1b16&showmsg=1'>Expand)Author 2023-03-03services: dbus: Deprecate 'dbus-service' procedure....* doc/guix.texi (Desktop Services): Replace with 'dbus-root-service-type'. Document dbus-configuration. * gnu/services/dbus.scm (dbus-service): Define with 'define-deprecated'. * gnu/services/desktop.scm (desktop-services-for-system): Replace with dbus-root-service-type. * gnu/system/install.scm (%installation-services): Ditto. * gnu/tests/base.scm (%avahi-os): Ditto. * gnu/tests/docker.scm (%docker-os): Ditto. * gnu/tests/lightdm.scm (minimal-desktop-services): Ditto. * gnu/tests/virtualization.scm (%libvirt-os): Ditto. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Bruno Victal 2023-03-03services: dbus: Deprecate 'polkit-service' procedure....* doc/guix.texi (Desktop Services): Replace 'polkit-service' with 'polkit-service-type'. * gnu/services/dbus.scm (polkit-service): Deprecate procedure. * gnu/tests/docker.scm (%docker-os): Use polkit-service-type. * gnu/tests/virtualization.scm (%libvirt-os): Ditto. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Bruno Victal 2022-08-29gnu: Add missing copyright line....This is a follow-up to commit 3e0abde17be944153be57ab5faeefc645266d39d. * gnu/tests/virtualization.scm: Add copyright header for myself. Marius Bakke 2022-08-29tests: libvirt: Ensure the default network can be started....* gnu/tests/virtualization.scm (run-libvirt-test): Run commands to create and start the default network. Marius Bakke 2022-08-09tests: Add qemu-guest-agent system test....Enable the QEMU guest agent interface in marionette VMs, run the qemu-guest-agent service in one and try talking to it. * gnu/build/marionette.scm (make-marionette): Enable the guest agent device. * gnu/tests/virtualization.scm (run-qemu-guest-agent-test): New procedure. (%test-qemu-guest-agent): New variable. Signed-off-by: Ludovic Courtès <ludo@gnu.org> Timotej Lazar 2022-06-05tests: childhurd: Make sure "guix build -d" works....* gnu/tests/virtualization.scm (run-childhurd-test) ["guix-daemon up and running"]: New test. Ludovic Courtès 2022-06-05tests: childhurd: Generalize command execution over SSH....* gnu/tests/virtualization.scm (run-childhurd-test)[run-uname-over-ssh]: Rename to... [run-command-over-ssh]: ... this. Add 'command' parameter and honor it. ["SSH up and running"]: Adjust accordingly. Ludovic Courtès