[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: install a Printer
From: |
Julien Lepiller |
Subject: |
Re: install a Printer |
Date: |
Tue, 15 Feb 2022 17:54:39 +0100 |
User-agent: |
K-9 Mail for Android |
Your service specification is not at the right place, and incorrect. You have
to be careful with parenthesis, as they define the structure of things (similar
to braces in other programming languages).
The service specification needs to be inside the list, at the same level as all
these (service …) forms. In the same way, you declare a service with (service
foo-service-type <configuration>), and the configuration is usually a record,
so it has parenthesis too.
For records, you do:
(<record-name>
(<field-name> <field-value>)
…)
With as many fields as you want, as long as they exist. In your config, guix
found (cups-service-type) at the same level as other fields of the
operating-system, but operating-system doesn't support such a field directly,
and the field does not have a value.
Overall, try something like this, at the same parenthetical level as the other
(service …) forms.
(service cups-service-type)
(cups-configuration
(web-interface? #t)
(extensions list cups-filters hplip)))
HTH!
On February 15, 2022 5:45:34 PM GMT+01:00, Gottfried <gottfried@posteo.de>
wrote:
>Hi,
>
>I tried to adjust my /etc/config.scm file, but I made some mistake.
>
>Could anybody help me please?
>
>here the file: (my changes are in bold letters)
>
>(I have installed cups, cups-filters, hplip in my guix system)
>
>
>;; This is an operating system configuration generated
>
>;; by the graphical installer.
>
>(use-modules (gnu))
>(use-service-modules desktop networking ssh xorg *cups*)
>
>(operating-system
> (locale "de_DE.utf8")
> (timezone "Europe/Berlin")
> (keyboard-layout (keyboard-layout "de"))
> (host-name "Tuxedo")
> (users (cons* (user-account
> (name "gfp")
> (comment "Gfp")
> (group "users")
> (home-directory "/home/gfp")
> (supplementary-groups
> '("wheel" "netdev" "audio" "video")))
> %base-user-accounts))
> (packages
> (append
> (list (specification->package "awesome")
> (specification->package "nss-certs"))
> %base-packages))
> (services
> (append
> (list (service mate-desktop-service-type)
> (service enlightenment-desktop-service-type)
> (service openssh-service-type)
> (service tor-service-type)
> (set-xorg-configuration
> (xorg-configuration
> (keyboard-layout keyboard-layout))))
> %desktop-services))
>*(cups-service-type)**
>** (cups-configuration**
>** (web-interface? #t**
>** (extensions list cups-filters hplip))))*
> (bootloader
> (bootloader-configuration
> (bootloader grub-efi-bootloader)
> (target "/boot/efi")
> (keyboard-layout keyboard-layout)))
> (swap-devices
> (list (uuid "51d5cd20-4513-4a02-9e35-df4338eccaa0")))
> (file-systems
> (cons* (file-system
> (mount-point "/boot/efi")
> (device (uuid "BB77-FE3B" 'fat32))
> (type "vfat"))
> (file-system
> (mount-point "/")
> (device
> (uuid "4fb0ed7c-61ab-45eb-be0b-ff527b320e6d"
> 'ext4))
> (type "ext4"))
> %base-file-systems)))
>
>
>After running: sudo guix system reconfigure /etc/config.scm
>
>it said:
>
>35:16: Fehler: (cups-service-type): invalid field specifier
>Fehler(german word means mistake)
>
>What do I have to change?
>
>
>Gottfried
- install a Printer, Gottfried, 2022/02/15
- Re: install a Printer,
Julien Lepiller <=
- Re: install a Printer, Gottfried, 2022/02/15
- Re: install a Printer, Julien Lepiller, 2022/02/15
- Re: install a Printer, Gottfried, 2022/02/15
- Re: install a Printer, Julien Lepiller, 2022/02/15
- Re: install a Printer, Gottfried, 2022/02/15
- Re: install a Printer, Julien Lepiller, 2022/02/15
- Re: install a Printer, Julien Lepiller, 2022/02/15
- Re: install a Printer, Gottfried, 2022/02/15
- Re: install a Printer, Julien Lepiller, 2022/02/15
- Re: install a Printer, Gottfried, 2022/02/16