all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"
@ 2022-08-03 19:17 Gottfried
  2022-08-03 19:18 ` (
  2022-08-03 20:20 ` Efraim Flashner
  0 siblings, 2 replies; 4+ messages in thread
From: Gottfried @ 2022-08-03 19:17 UTC (permalink / raw)
  To: help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 3673 bytes --]

Hi Guixers,

I got into trouble.

After inserting:
(guix-service-type config => (guix-configuration (inherit config) 
(extra-options (list "--gc-keep-derivations=yes" 
"--gc-keep-outputs=yes")))))
in my config.scm

I can't do a:
sudo guix system reconfigure /etc/config.scm

It said "invalid field specifier.

gfp@Tuxedo ~$ sudo guix system reconfigure /etc/config.scm
Passwort:
/etc/config.scm:25:2: Fehler: (services (append (list (service 
mate-desktop-service-type) (service enlightenment-desktop-service-type) 
(service cups-service-type (cups-configuration (web-interface? #t) 
(extensions (list cups-filters hplip)))) (service openssh-service-type) 
(service tor-service-type) (set-xorg-configuration (xorg-configuration 
(keyboard-layout keyboard-layout)))) (modify-services %desktop-services 
(sane-service-type _ => sane-backends))) (guix-service-type config => 
(guix-configuration (inherit config) (extra-options (list 
"--gc-keep-derivations=yes" "--gc-keep-outputs=yes"))))): invalid field 
specifier


than I deleted one of two empty lines (before  (bootloader.......)

Then I did again a:

gfp@Tuxedo ~$ sudo guix system reconfigure /etc/config.scm
Passwort:
guix system: Fehler: =>: bad use of '=>' syntactic keyword

It said: bad use of systactic keyword




Could anybody help to check my config.scm?

;; This is an operating system configuration generated
;; by the graphical installer.

(use-modules (gnu))
(use-package-modules cups scanner)
(use-service-modules cups desktop networking ssh xorg)

(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 "nss-certs"))			
       %base-packages))
   (services
     (append
       (list (service mate-desktop-service-type)
             (service enlightenment-desktop-service-type)
			(service cups-service-type
				(cups-configuration
					(web-interface? #t)
					(extensions (list cups-filters hplip))))			
			(service openssh-service-type)
             (service tor-service-type)
             (set-xorg-configuration
               (xorg-configuration
                 (keyboard-layout keyboard-layout))))
             (guix-service-type
                 config => (guix-configuration
                 (inherit config)
                 (extra-options (list "--gc-keep-derivations=yes" 
"--gc-keep-outputs=yes"))))
       (modify-services %desktop-services
		(sane-service-type _ => sane-backends))))

   (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)))


thanks in advance for your help, without that I would not be able to use 
Guix.

Gottfried

[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

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

* Re: "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"
  2022-08-03 19:17 "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm" Gottfried
@ 2022-08-03 19:18 ` (
  2022-08-04 12:55   ` Gottfried
  2022-08-03 20:20 ` Efraim Flashner
  1 sibling, 1 reply; 4+ messages in thread
From: ( @ 2022-08-03 19:18 UTC (permalink / raw)
  To: Gottfried, help-guix

On Wed Aug 3, 2022 at 8:17 PM BST, Gottfried wrote:
>              (guix-service-type
>                  config => (guix-configuration
>                  (inherit config)
>                  (extra-options (list "--gc-keep-derivations=yes" 
I believe the correct usage would be

  (service guix-service-type ...)

    -- (


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

* Re: "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"
  2022-08-03 19:17 "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm" Gottfried
  2022-08-03 19:18 ` (
@ 2022-08-03 20:20 ` Efraim Flashner
  1 sibling, 0 replies; 4+ messages in thread
From: Efraim Flashner @ 2022-08-03 20:20 UTC (permalink / raw)
  To: Gottfried; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 4186 bytes --]

On Wed, Aug 03, 2022 at 07:17:00PM +0000, Gottfried wrote:
> Hi Guixers,
> 
> I got into trouble.
> 
> After inserting:
> (guix-service-type config => (guix-configuration (inherit config)
> (extra-options (list "--gc-keep-derivations=yes"
> "--gc-keep-outputs=yes")))))
> in my config.scm
> 
> I can't do a:
> sudo guix system reconfigure /etc/config.scm
> 
> It said "invalid field specifier.
> 
> gfp@Tuxedo ~$ sudo guix system reconfigure /etc/config.scm
> Passwort:
> /etc/config.scm:25:2: Fehler: (services (append (list (service
> mate-desktop-service-type) (service enlightenment-desktop-service-type)
> (service cups-service-type (cups-configuration (web-interface? #t)
> (extensions (list cups-filters hplip)))) (service openssh-service-type)
> (service tor-service-type) (set-xorg-configuration (xorg-configuration
> (keyboard-layout keyboard-layout)))) (modify-services %desktop-services
> (sane-service-type _ => sane-backends))) (guix-service-type config =>
> (guix-configuration (inherit config) (extra-options (list
> "--gc-keep-derivations=yes" "--gc-keep-outputs=yes"))))): invalid field
> specifier
> 
> 
> than I deleted one of two empty lines (before  (bootloader.......)
> 
> Then I did again a:
> 
> gfp@Tuxedo ~$ sudo guix system reconfigure /etc/config.scm
> Passwort:
> guix system: Fehler: =>: bad use of '=>' syntactic keyword
> 
> It said: bad use of systactic keyword
> 
> 
> 
> 
> Could anybody help to check my config.scm?
> 
> ;; This is an operating system configuration generated
> ;; by the graphical installer.
> 
> (use-modules (gnu))
> (use-package-modules cups scanner)
> (use-service-modules cups desktop networking ssh xorg)
> 
> (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 "nss-certs"))			
>       %base-packages))
>   (services
>     (append
>       (list (service mate-desktop-service-type)
>             (service enlightenment-desktop-service-type)
> 			(service cups-service-type
> 				(cups-configuration
> 					(web-interface? #t)
> 					(extensions (list cups-filters hplip))))			
> 			(service openssh-service-type)
>             (service tor-service-type)
>             (set-xorg-configuration
>               (xorg-configuration
>                 (keyboard-layout keyboard-layout))))
>             (guix-service-type
>                 config => (guix-configuration
>                 (inherit config)
>                 (extra-options (list "--gc-keep-derivations=yes"
> "--gc-keep-outputs=yes"))))
>       (modify-services %desktop-services
> 		(sane-service-type _ => sane-backends))))

Move (guix-service-type ... to inside of (modify-services ...

>   (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)))
> 
> 
> thanks in advance for your help, without that I would not be able to use
> Guix.
> 
> Gottfried






-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

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

* Re: "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"
  2022-08-03 19:18 ` (
@ 2022-08-04 12:55   ` Gottfried
  0 siblings, 0 replies; 4+ messages in thread
From: Gottfried @ 2022-08-04 12:55 UTC (permalink / raw)
  To: (, help-guix


[-- Attachment #1.1.1: Type: text/plain, Size: 1008 bytes --]

Hi Guixers,

thanks for the answer.

I changed my config.scm to:

(service guix-service-type
                config => (guix-configuration
                  (inherit config)
                  (extra-options (list "--gc-keep-derivations=yes" 
"--gc-keep-outputs=yes"))))

and after:
gfp@Tuxedo ~$ sudo guix system reconfigure /etc/config.scm

it said:

/etc/config.scm:38:12: Fehler: (service guix-service-type config => 
(guix-configuration (inherit config) (extra-options (list 
"--gc-keep-derivations=yes" "--gc-keep-outputs=yes")))): source 
expression failed to match any pattern

Gottfried

Am 03.08.22 um 21:18 schrieb (:
> On Wed Aug 3, 2022 at 8:17 PM BST, Gottfried wrote:
>>               (guix-service-type
>>                   config => (guix-configuration
>>                   (inherit config)
>>                   (extra-options (list "--gc-keep-derivations=yes"
> I believe the correct usage would be
> 
>    (service guix-service-type ...)
> 
>      -- (


[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 3191 bytes --]

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

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

end of thread, other threads:[~2022-08-04 12:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-03 19:17 "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm" Gottfried
2022-08-03 19:18 ` (
2022-08-04 12:55   ` Gottfried
2022-08-03 20:20 ` Efraim Flashner

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.