[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: hydra.gnu.org off-line for maintenance
From: |
Ricardo Wurmus |
Subject: |
Re: hydra.gnu.org off-line for maintenance |
Date: |
Wed, 31 Oct 2018 18:04:50 +0100 |
User-agent: |
mu4e 1.0; emacs 26.1 |
Hi,
address@hidden writes:
> (define %my-services
> (modify-services %base-services
> (guix-service-type config =>
> (guix-configuration
> (inherit config)
> (substitute-urls (list "https://mirror.hydra.gnu.org
> <https://mirror.hydra.gnu.org>";
> "https://hydra.gnu.org <https://hydra.gnu.org>";
> "https://berlin.guixsd.org <https://berlin.guixsd.org>";
> ))))))
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)
(bluetooth-service)
(append (modify-services %desktop-services …)
%my-services)))
Or you could change %my-services to work on %desktop-services and thus
remove the second “modify-services”.
--
Ricardo
PS: closing parentheses get lonely when they are on a line all by
themselves ;)
- hydra.gnu.org off-line for maintenance, Ludovic Courtès, 2018/10/24
- Re: hydra.gnu.org off-line for maintenance, Luther Thompson, 2018/10/25
- Re: hydra.gnu.org off-line for maintenance, Jonathan Brielmaier, 2018/10/26
- Re: hydra.gnu.org off-line for maintenance, Thomas Danckaert, 2018/10/26
- Re: hydra.gnu.org off-line for maintenance, Thorsten Wilms, 2018/10/26
- Re: hydra.gnu.org off-line for maintenance, Tobias Geerinckx-Rice, 2018/10/26
- Re: hydra.gnu.org off-line for maintenance, znavko, 2018/10/29
- Re: hydra.gnu.org off-line for maintenance,
Ricardo Wurmus <=
- Re: hydra.gnu.org off-line for maintenance, znavko, 2018/10/31
- Re: hydra.gnu.org off-line for maintenance, Clément Lassieur, 2018/10/26
- Re: hydra.gnu.org off-line for maintenance, Alex Vong, 2018/10/26
- Re: hydra.gnu.org off-line for maintenance, Tobias Geerinckx-Rice, 2018/10/27
- Re: hydra.gnu.org off-line for maintenance, Alex Vong, 2018/10/31
- Evaluations on berlin.guixsd.org, Ludovic Courtès, 2018/10/26