[bug#74997,4/4] home: services: Add ‘transient’ and ‘timer’ to ‘%base-home-services’.

Message ID c4b557c6745a7dd90c9c25617be5ec6b2bfd1aaa.1737152078.git.ludo@gnu.org
State New
Headers
Series Adding the 'timer' and 'transient' Shepherd services |

Commit Message

Ludovic Courtès Jan. 17, 2025, 10:19 p.m. UTC
  * gnu/home.scm (%base-home-services): Add
‘home-shepherd-timer-service-type’ and
‘home-shepherd-transient-service-type’.

Change-Id: Ib48744b82c7e4c6ff6b8ac3d669774feda813f4b
---
 gnu/home.scm | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
  

Comments

Maxim Cournoyer Jan. 19, 2025, 9:32 a.m. UTC | #1
Ludovic Courtès <ludo@gnu.org> writes:

> * gnu/home.scm (%base-home-services): Add
> ‘home-shepherd-timer-service-type’ and
> ‘home-shepherd-transient-service-type’.
>
> Change-Id: Ib48744b82c7e4c6ff6b8ac3d669774feda813f4b

Reviewed-by: Maxim Cournoyer <maxim.cournoyer@gmail.com>
  
Ludovic Courtès Jan. 26, 2025, 9:19 p.m. UTC | #2
Pushed as 4fa122bc4d3ccdca5b4613c3d700558c4af593fe, thank you!
  

Patch

diff --git a/gnu/home.scm b/gnu/home.scm
index 3b479f64f9..1172b1a0ab 100644
--- a/gnu/home.scm
+++ b/gnu/home.scm
@@ -1,6 +1,6 @@ 
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2021 Andrew Tropin <andrew@trop.in>
-;;; Copyright © 2022, 2024 Ludovic Courtès <ludo@gnu.org>
+;;; Copyright © 2022, 2024-2025 Ludovic Courtès <ludo@gnu.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -21,6 +21,7 @@  (define-module (gnu home)
   #:use-module (gnu home services)
   #:use-module (gnu home services symlink-manager)
   #:use-module (gnu home services shells)
+  #:use-module (gnu home services shepherd)
   #:use-module (gnu home services xdg)
   #:use-module (gnu home services fontutils)
   #:use-module (gnu home services admin)
@@ -80,7 +81,9 @@  (define-record-type* <home-environment> home-environment
 
 (define %base-home-services
   ;; Non-essential but useful services to have by default.
-  (list (service home-log-rotation-service-type)))
+  (list (service home-log-rotation-service-type)
+        (service home-shepherd-timer-service-type)
+        (service home-shepherd-transient-service-type)))
 
 (define (home-environment-default-essential-services he)
   "Return the list of essential services for home environment."