all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* define udev-service-type fails with "did you forget to import.." error
@ 2020-09-27 21:23 Stefan Huchler
  2020-09-29 14:12 ` Ludovic Courtès
  0 siblings, 1 reply; 10+ messages in thread
From: Stefan Huchler @ 2020-09-27 21:23 UTC (permalink / raw)
  To: help-guix

When I try to redefine the udev-service like described in:
https://guix.gnu.org/manual/en/html_node/Service-Types-and-Services.html


(define udev-service-type
  (service-type (name 'udev)
                (extensions
                 (list (service-extension shepherd-root-service-type
                                          udev-shepherd-service)))
                (compose concatenate)       ;concatenate the list of rules
                (extend (lambda (config rules)
                          (match config
                            (($ <udev-configuration> udev initial-rules)
                             (udev-configuration
                              (udev eudev)   ;the udev package to use
                              (rules initial-rules))))))))

I get following error:
/etc/config.scm:128:0: error: udev-shepherd-service: unbound variable
hint: Did you forget `(use-modules (gnu services base))'?

Despite having:
(use-modules (gnu services base)...)

Any Idea what I do wrong?


btw I removed the append part of rules
otherwise it's copied from that docu example.



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2020-10-04 20:56 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-09-27 21:23 define udev-service-type fails with "did you forget to import.." error Stefan Huchler
2020-09-29 14:12 ` Ludovic Courtès
2020-09-29 16:23   ` Stefan Huchler
2020-10-04 10:29     ` Ricardo Wurmus
2020-10-04 14:18       ` Stefan Huchler
2020-10-04 15:00         ` Tobias Geerinckx-Rice
2020-10-04 20:06           ` Stefan Huchler
2020-10-04 20:25           ` Stefan Huchler
2020-10-04 20:55             ` Tobias Geerinckx-Rice
2020-10-04 10:18   ` Stefan Huchler

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.