Re: bad use of syntactic keyword

2023-03-11 Thread Julien Lepiller
Ah but the home-redshift-service-type is a home service, not a system service. 
It's meant to be used with guix home, not guix system.

Le 11 mars 2023 11:15:20 GMT+01:00, Gottfried  a écrit :
>Hi,
>thanks for help
>
>I have now got:
>
>> (service home-redshift-service-type
>>  (home-redshift-configuration
>>   (location-provider 'manual)
>>   (latitude 52.5);northern hemisphere
>>   (longitude 13.5))) ;Berlin
>> (modify-services %desktop-services
>>   (guix-service-type
>>config => (guix-configuration
>>  (inherit config)
>>  (extra-options (list "--gc-keep-derivations=yes" 
>> "--gc-keep-outputs=yes"
>> (sane-service-type _ => sane-backends)
>
>but running system reconfigure..
>I am getting now another message:
>
>> ice-9/boot-9.scm:1685:16: In procedure raise-exception:
>> error: home-redshift-service-type: unbound variable
>.
>I copied the "redshift-service-type" part
>from the manual into my config.scm
>so I don’t find the "unbound variable".
>
>Kind regards
>
>Gottfried
>
>
>
>Am 09.03.23 um 18:20 schrieb Julien Lepiller:
>> You have an extra closing parenthesis at the end of this line:
>> 
>> (extra-options (list "--gc-keep-derivations=yes" "--gc-keep-outputs=yes")
>> 
>> Remove one and adjust next lines if needed :)
>> 
>
>>> %base-initrd-modules)))
>>> 
>
>



Re: bad use of syntactic keyword

2023-03-11 Thread Gottfried

Hi,
thanks for help

I have now got:


(service home-redshift-service-type
 (home-redshift-configuration
  (location-provider 'manual)
  (latitude 52.5);northern hemisphere
  (longitude 13.5))) ;Berlin
(modify-services %desktop-services
  (guix-service-type
   config => (guix-configuration
 (inherit config)
 (extra-options (list "--gc-keep-derivations=yes" 
"--gc-keep-outputs=yes"
(sane-service-type _ => sane-backends)


but running system reconfigure..
I am getting now another message:


ice-9/boot-9.scm:1685:16: In procedure raise-exception:
error: home-redshift-service-type: unbound variable

.
I copied the "redshift-service-type" part
from the manual into my config.scm
so I don’t find the "unbound variable".

Kind regards

Gottfried



Am 09.03.23 um 18:20 schrieb Julien Lepiller:

You have an extra closing parenthesis at the end of this line:

(extra-options (list "--gc-keep-derivations=yes" "--gc-keep-outputs=yes")

Remove one and adjust next lines if needed :)




%base-initrd-modules)))






OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: bad use of syntactic keyword

2023-03-10 Thread Julien Lepiller
You have an extra closing parenthesis at the end of this line:

(extra-options (list "--gc-keep-derivations=yes" "--gc-keep-outputs=yes")

Remove one and adjust next lines if needed :)

Le 9 mars 2023 17:49:43 GMT+01:00, Gottfried  a écrit :
>Hi,
>
>after adding: "service redshift" to my config.scm
>
>running
>
>sudo guix system configure /etc/config.scm
>
>it says:
>
>guix system: Fehler: _: bad use of '_' syntactic keyword
>
>german Fehler = mistake
>
>I don’t know where is my mistake.
>
>here 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 virtualization)
>
>(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" "libvirt")))
>%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)))
>(service libvirt-service-type
> (libvirt-configuration
>  (unix-sock-group "libvirt")
>  (tls-port "16555")))
>(service virtlog-service-type
> (virtlog-configuration
>  (max-clients 1000)))
>(service home-redshift-service-type
> (home-redshift-configuration
>  (location-provider 'manual)
>  (latitude 52.5);northern hemisphere
>  (longitude 13.5))) ;Berlin
>(modify-services %desktop-services
> (guix-service-type
>   config => (guix-configuration
> (inherit config)
> (extra-options (list "--gc-keep-derivations=yes" 
> "--gc-keep-outputs=yes")
>   (sane-service-type _ => sane-backends
>
>  (bootloader
>(bootloader-configuration
>  (bootloader grub-efi-bootloader)
>  (targets (list "/boot/efi"))
>  (keyboard-layout keyboard-layout)))
>  (swap-devices
>   (list (swap-space
>  (target (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))
>  (initrd-modules (cons "virtio_scsi"; Needed to find the disk
>%base-initrd-modules)))
>
> 
>Thanks for help
>
>Kind regards
>
>Gottfried
>



Re: bad use of syntactic keyword

2023-03-09 Thread Marek Paśnikowski
> guix system: Fehler: _: bad use of '_' syntactic keyword

You have a '_' in the sane configuration.
If the redshift service declaration is the only change you made,
I'd say you imbalanced your parentheses.



bad use of syntactic keyword

2023-03-09 Thread Gottfried

Hi,

after adding: "service redshift" to my config.scm

running

sudo guix system configure /etc/config.scm

it says:

guix system: Fehler: _: bad use of '_' syntactic keyword

german Fehler = mistake

I don’t know where is my mistake.

here 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 virtualization)

(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" "libvirt")))
%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)))
(service libvirt-service-type
 (libvirt-configuration
  (unix-sock-group "libvirt")
  (tls-port "16555")))
(service virtlog-service-type
 (virtlog-configuration
  (max-clients 1000)))
(service home-redshift-service-type
 (home-redshift-configuration
  (location-provider 'manual)
  (latitude 52.5);northern hemisphere
  (longitude 13.5))) ;Berlin
(modify-services %desktop-services
  (guix-service-type
   config => (guix-configuration
 (inherit config)
 (extra-options (list "--gc-keep-derivations=yes" 
"--gc-keep-outputs=yes")

(sane-service-type _ => sane-backends

  (bootloader
(bootloader-configuration
  (bootloader grub-efi-bootloader)
  (targets (list "/boot/efi"))
  (keyboard-layout keyboard-layout)))
  (swap-devices
   (list (swap-space
  (target (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))
  (initrd-modules (cons "virtio_scsi"; Needed to find the disk
%base-initrd-modules)))

 


Thanks for help

Kind regards

Gottfried



OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"

2022-08-04 Thread Gottfried

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

 -- (




OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature


Re: "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"

2022-08-03 Thread Efraim Flashner
On Wed, Aug 03, 2022 at 07:17:00PM +, 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  אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted


signature.asc
Description: PGP signature


Re: "bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"

2022-08-03 Thread (
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 ...)

-- (



"bad use of syntactic keyword" - after "sudo guix system reconfigure /etc/config.scm"

2022-08-03 Thread Gottfried

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


OpenPGP_0x61FAF349C9FB7F94.asc
Description: OpenPGP public key


OpenPGP_signature
Description: OpenPGP digital signature