aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2022-12-20 10:33:03 +0100
committerLudovic Courtès <ludo@gnu.org>2022-12-20 16:56:03 +0100
commit3f6c5c6f781bdf4cf5f15272642d0f3aba01aa50 (patch)
treeca2700d62e0b7e591f5e8fa75872cc7696253bd8 /doc
parent680970490c556ae0029aa1ba2b0faba162118186 (diff)
downloadguix-3f6c5c6f781bdf4cf5f15272642d0f3aba01aa50.tar
guix-3f6c5c6f781bdf4cf5f15272642d0f3aba01aa50.tar.gz
doc: Avoid 'match' on the <udev-configuration> record.
Fixes <https://issues.guix.gnu.org/59907>. Reported by MANCINI Raffael <Raffael.MANCINI@mnhn.lu>. * doc/guix.texi (Service Types and Services): Change 'udev-configuration' example to avoid 'match'.
Diffstat (limited to 'doc')
-rw-r--r--doc/guix.texi9
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/guix.texi b/doc/guix.texi
index c031c8d880..6478deba1d 100644
--- a/doc/guix.texi
+++ b/doc/guix.texi
@@ -39719,11 +39719,10 @@ The service type for an @emph{extensible} service looks like this:
(compose concatenate) ;concatenate the list of rules
(extend (lambda (config rules)
- (match config
- (($ <udev-configuration> udev initial-rules)
- (udev-configuration
- (udev udev) ;the udev package to use
- (rules (append initial-rules rules)))))))))
+ (udev-configuration
+ (inherit config)
+ (rules (append (udev-configuration-rules config)
+ rules)))))))
@end lisp
This is the service type for the