From: Stefan Huchler <stefan.huchler@mail.de>
To: help-guix@gnu.org
Subject: Re: define udev-service-type fails with "did you forget to import.." error
Date: Tue, 29 Sep 2020 18:23:23 +0200 [thread overview]
Message-ID: <8736305z7o.fsf@mail.de> (raw)
In-Reply-To: 87mu18659m.fsf@gnu.org
[-- Attachment #1: Type: text/plain, Size: 364 bytes --]
Ludovic Courtès <ludo@gnu.org> writes:
> Hi,
>
> Stefan Huchler <stefan.huchler@mail.de> skribis:
>
>> I get following error:
>> /etc/config.scm:128:0: error: udev-shepherd-service: unbound variable
>> hint: Did you forget `(use-modules (gnu services base))'?
>
> Could you send /etc/config.scm so we can see the context?
>
> Thanks,
> Ludo’.
Yes of course.
[-- Attachment #2: config.scm --]
[-- Type: application/octet-stream, Size: 2860 bytes --]
;; This is an operating system configuration generated
;; by the graphical installer.
;; Import nonfree linux module.
(use-modules (nongnu packages linux)
(nongnu system linux-initrd)
(gnu services base)
(gnu system linux-initrd)
(gnu services shepherd)
(eudev)
(gnu)
;; (ice-9 match)
;; (srfi srfi-1)
)
(use-service-modules desktop networking ssh xorg base)
(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)
)))))))
(operating-system
(kernel linux)
(initrd microcode-initrd)
(firmware (cons* iwlwifi-firmware
%base-firmware))
;; (firmware (list linux-firmware))
(locale "en_US.utf8")
(timezone "Europe/Amsterdam")
(keyboard-layout (keyboard-layout "us" "dvorak"))
(host-name "neptun")
(users (cons* (user-account
(name "black")
(comment "Black")
(group "users")
(home-directory "/home/black")
(supplementary-groups
'("wheel" "netdev" "audio" "video")))
%base-user-accounts))
(packages
(append
(list (specification->package "i3-wm")
(specification->package "i3status")
(specification->package "dmenu")
(specification->package "my-eudev")
(specification->package "st")
;; (specification->package "kodi")
;; (specification->package "eudev")
(specification->package "emacs")
(specification->package "wget")
(specification->package "git")
(specification->package "python2-pillow")
(specification->package "nss-certs"))
%base-packages))
(services
(append
(list
(cons (udev-service-type)
%base-services)
(service openssh-service-type
(openssh-configuration
(permit-root-login #t)))
;; (service special-files-service-type
;; `(("/etc/udev/hwdb.d/90-X220-keyboard.hwdb"
;; ,(file-append x220-hwdb "90-X220-keyboard.hwdb"))))
(set-xorg-configuration
(xorg-configuration
(keyboard-layout keyboard-layout))))
%desktop-services))
(bootloader
(bootloader-configuration
(bootloader grub-bootloader)
(target "/dev/sda")
(keyboard-layout keyboard-layout)))
(swap-devices (list "/dev/sda1"))
(file-systems
(cons* (file-system
(mount-point "/")
(device
(uuid "b11aa0fd-ebbe-4994-bfd5-8bf4c79bf6e7"
'ext4))
(type "ext4"))
%base-file-systems)))
next prev parent reply other threads:[~2020-09-29 16:24 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
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=8736305z7o.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).