[bug#74860,v3,11/12] home: Add log rotation to ‘%base-home-services’.

Message ID 56b71587f028893a695d99fe67fa9b31ed28f6cf.1736373023.git.ludo@gnu.org
State New
Headers
Series Using the Shepherd's log rotation service |

Commit Message

Ludovic Courtès Jan. 8, 2025, 9:51 p.m. UTC
  * gnu/home.scm (%base-home-services): Add instance of
‘home-log-rotation-service-type’.
* doc/guix.texi (Shepherd Home Service): Document it.

Change-Id: I00a98da100e3a07fe409f3c44d8ab88e743a8e3e
---
 doc/guix.texi | 2 ++
 gnu/home.scm  | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)
  

Patch

diff --git a/doc/guix.texi b/doc/guix.texi
index f8ac7b1912..669102f516 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -47104,6 +47104,8 @@  Shepherd Home Service
 Its value must be a @code{log-rotation-configuration} record, exactly as
 for its system-wide counterpart.  @xref{log-rotation-configuration}, for
 its reference.
+
+This service is part of @code{%base-home-services}.
 @end defvar
 
 @node Secure Shell
diff --git a/gnu/home.scm b/gnu/home.scm
index 042d2e67de..3b479f64f9 100644
--- a/gnu/home.scm
+++ b/gnu/home.scm
@@ -80,7 +80,7 @@  (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)))
 
 (define (home-environment-default-essential-services he)
   "Return the list of essential services for home environment."