From mboxrd@z Thu Jan 1 00:00:00 1970 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 Message-ID: <87k1dionof.fsf@elephly.net> References: <877e9j9c74.fsf@roquette.mug.biscuolo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:56138) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hdH6V-0007NC-4F for help-guix@gnu.org; Tue, 18 Jun 2019 12:37:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hdH6S-0004Gp-MR for help-guix@gnu.org; Tue, 18 Jun 2019 12:37:03 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21312) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hdH6Q-0004Aa-Aa for help-guix@gnu.org; Tue, 18 Jun 2019 12:36:58 -0400 In-reply-to: <877e9j9c74.fsf@roquette.mug.biscuolo.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: Giovanni Biscuolo Cc: help-guix@gnu.org Hi Giovanni, the problem is with your =E2=80=9Cservices=E2=80=9D field: (services (append (list =E2=80=A6 (modify-services %base-services (guix-service-type config =3D> (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=E2=80=99s inside of =E2=80=9Clist=E2=80=9D. =E2=80=9Cappend=E2=80=9D = 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 =E2=80=9Cappend=E2=80=9D. --=20 Ricardo