[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: off-line for maintenance

From: Ricardo Wurmus
Subject: Re: off-line for maintenance
Date: Wed, 31 Oct 2018 18:04:50 +0100
User-agent: mu4e 1.0; emacs 26.1


address@hidden writes:

> (define %my-services
>  (modify-services %base-services
>  (guix-service-type config =>
>  (guix-configuration
>  (inherit config)
>  (substitute-urls (list " 
> <>";
>  " <>";
>  " <>";
>  ))))))

Okay, %my-services is a list of services.  Let’s remember this.

>  (services (cons* ;;(tor-service)
>  (xfce-desktop-service)
>  (bluetooth-service)
>  (modify-services %desktop-services …)
>  %my-services
>  ));;end of services

Here you’re using cons* on four arguments: a service, another service, a
list of services, and yet another list of services.

This is why you get the error, because you’re creating a nested list of
services and lists of services.  When you pay attention to the types you
could come up with an alternative, such as this:

(services (cons* (xfce-desktop-service)
                 (append (modify-services %desktop-services …)

Or you could change %my-services to work on %desktop-services and thus
remove the second “modify-services”.


PS: closing parentheses get lonely when they are on a line all by
themselves ;)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]