From: Stefan Huchler <stefan.huchler@mail.de>
To: help-guix@gnu.org
Subject: define udev-service-type fails with "did you forget to import.." error
Date: Sun, 27 Sep 2020 23:23:42 +0200 [thread overview]
Message-ID: <87blhq6hi9.fsf@mail.de> (raw)
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.
next reply other threads:[~2020-09-27 21:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-27 21:23 Stefan Huchler [this message]
2020-09-29 14:12 ` define udev-service-type fails with "did you forget to import.." error 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87blhq6hi9.fsf@mail.de \
--to=stefan.huchler@mail.de \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).