summaryrefslogtreecommitdiff
path: root/gnu/system.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2024-02-23 21:22:55 +0100
committerLudovic Courtès <ludo@gnu.org>2024-03-22 11:40:33 +0100
commit29de2edfbbed21ac016f73a45d399795fc2e4dfb (patch)
tree54db192b7526446c974cdb317d753694e32cd19b /gnu/system.scm
parentb5018807ee4b09962507b67f7506cbdc70d6c810 (diff)
system, home: Validate ‘services’ field value.
This guides newcomers who might stick a single (service …) form in this field. * gnu/services.scm (validate-service-list): New macro. (%validate-service-list): New procedure. * gnu/system.scm (<operating-system>)[services]: Add ‘sanitize’. * gnu/home.scm (<home-environment>)[services]: Add ‘sanitize’. Change-Id: I9e29bd9a078e87b627ab766fd669ba9de79f8473
Diffstat (limited to 'gnu/system.scm')
-rw-r--r--gnu/system.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/gnu/system.scm b/gnu/system.scm
index aede35775ef..aef81d8ccfa 100644
--- a/gnu/system.scm
+++ b/gnu/system.scm
@@ -1,5 +1,5 @@
1;;; GNU Guix --- Functional package management for GNU 1;;; GNU Guix --- Functional package management for GNU
2;;; Copyright © 2013-2022 Ludovic Courtès <ludo@gnu.org> 2;;; Copyright © 2013-2022, 2024 Ludovic Courtès <ludo@gnu.org>
3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org> 3;;; Copyright © 2015 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com> 4;;; Copyright © 2015, 2016 Alex Kost <alezost@gmail.com>
5;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com> 5;;; Copyright © 2016 Chris Marusich <cmmarusich@gmail.com>
@@ -294,7 +294,8 @@ VERSION is the target version of the boot-parameters record."
294 this-operating-system))) 294 this-operating-system)))
295 (services operating-system-user-services ; list of services 295 (services operating-system-user-services ; list of services
296 (thunked) ;allow for system-dependent services 296 (thunked) ;allow for system-dependent services
297 (default %base-services)) 297 (default %base-services)
298 (sanitize validate-service-list))
298 299
299 (pam-services operating-system-pam-services ; list of PAM services 300 (pam-services operating-system-pam-services ; list of PAM services
300 (default (base-pam-services))) 301 (default (base-pam-services)))