help-guix
[Top][All Lists]
Advanced

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

Re: guix system reconfigure: Wrong type argument in position 1 (expectin


From: Ricardo Wurmus
Subject: Re: guix system reconfigure: Wrong type argument in position 1 (expecting struct)
Date: Tue, 18 Jun 2019 18:36:48 +0200
User-agent: mu4e 1.2.0; emacs 26.2

Hi Giovanni,

the problem is with your “services” field:

 (services
  (append
   (list …

         (modify-services %base-services
                          (guix-service-type config =>
                                             (guix-configuration
                                              (inherit config)
                                              (use-substitutes? #t)
                                              (authorized-keys
                                               %authorized-guix-keys)))))))

Note the indentation: modify-services returns a list and in your config
that’s inside of “list”.  “append” here only has one argument: a list
that contains a list of services (among others).

Pull out the modify-services expression, so that it becomes the second
argument to “append”.

-- 
Ricardo




reply via email to

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