From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id iP/iNfZA+WXR0gAA62LTzQ:P1 (envelope-from ) for ; Tue, 19 Mar 2024 08:38:31 +0100 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id iP/iNfZA+WXR0gAA62LTzQ (envelope-from ) for ; Tue, 19 Mar 2024 08:38:31 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=laesvuori.fi header.s=mail header.b=PLCM6Lk0; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=laesvuori.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1710833910; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=bzWfhLOjckBRPUS8mGg6ioyDhlwKPHS24bsfLA1Cd88=; b=NIFvE+wrXX7ZTngbDn+t8dp+W9cxYXFMZY32aE0sb0A57CBe+OWgmNW5pLbYs8ixZBYCJu sdJ+Z2pcUTe/MyJizAGMrmjAFR6VWLCAQH5oYw7LQnEPu0lqVMSlNMD96FxpFUF1MLjTxL i5PwDvz8N4HglyCWQSF305GP+e58gwS0+e9OPkdKVQSgjjv0Q5ODJplWgs0P72qCyNERg8 8NanEyf1EIB8/QWDOU/AvV6dFO0gwm4mR208AzJz7Rwm2IiUHUH5xl05e+qwOY7EScGASj 0qKD6zhQWWp8B2fL4gpUgWC/UU9977eB1Ylcd4eCV/5NgWqKD54DgyyoYyy8Ig== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=laesvuori.fi header.s=mail header.b=PLCM6Lk0; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=reject) header.from=laesvuori.fi ARC-Seal: i=1; s=key1; d=yhetil.org; t=1710833910; a=rsa-sha256; cv=none; b=Zhj4UFpyGlav+n0Zw8ZKDTtpt1a9n2BWAh1QV35Xuf7JGgJpx1fHq58oDiSTXUd+lDr3FW T2+IawLfMEQ+qS6mPM6aRVBZlpQDyFZMrJMZpj3iWA/g4JvetcGdYBjIl38cY4ZI1+MpdO XOiY/HG5IqR24rMh34B1T8aHzD8F7UmmduUZiMf6nx0Lo/71yAxNivVuU6IfjF2BXGj/Q9 jRwMulai8VjbGQpe5QNecb7nNZX3z1EIH+PGprrR/DVNAQhL4cR6krahQa0DBibVe3tPvE O2Nyw/EbAyHrF6aWjt8AG61DljPJbPhzgsJMQT76Of6lcuHbtzFZ6CbF7NK7mA== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 5130B2306B for ; Tue, 19 Mar 2024 08:38:30 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rmU2s-000594-LF; Tue, 19 Mar 2024 03:38:02 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmU2q-00058R-6b for help-guix@gnu.org; Tue, 19 Mar 2024 03:38:00 -0400 Received: from vmi571514.contaboserver.net ([75.119.130.101] helo=mail.laesvuori.fi) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rmU2l-0001Ga-Os for help-guix@gnu.org; Tue, 19 Mar 2024 03:37:59 -0400 Received: from X-kone (unknown [130.233.144.135]) by mail.laesvuori.fi (Postfix) with ESMTPSA id CD38A34364A; Tue, 19 Mar 2024 08:37:52 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=laesvuori.fi; s=mail; t=1710833873; bh=qc55lIKmHRgII80KvULdUHfdL6/bvywP/Xu1AUlyyUw=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=PLCM6Lk0N/iIl6N5xR/Z3YuCIsTc0GgAt1cCbQDPBsUAOL5J1MvL9hw1Ooi3L/mcR +kG0zTUthFmMSc+XZcd4PCurEv16xDGSdgewZdqm2gOmDOUZu9Q10UtXczqRxJIZMO NWZhTBxOjgDj5yA5LdN9z/XSxOuLSYo8hv44uEV4= Date: Tue, 19 Mar 2024 09:37:47 +0200 From: Saku Laesvuori To: "hubert.lombard@ik.me" Cc: Richard Sent , "hubert.lombard@ik.me\" via" Subject: Re: hurd-vm-service-type into /etc/config.scm Message-ID: References: <1ce28a7110c8c05078d2af421772de13@mail.infomaniak.com> <87il1m2p1q.fsf@freakingpenguin.com> <178cd47b36dd1ecf6dd97df742b3fce6@mail.infomaniak.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="zvktn6vxwqbtpcl3" Content-Disposition: inline In-Reply-To: <178cd47b36dd1ecf6dd97df742b3fce6@mail.infomaniak.com> Received-SPF: pass client-ip=75.119.130.101; envelope-from=saku@laesvuori.fi; helo=mail.laesvuori.fi X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -9.11 X-Spam-Score: -9.11 X-Migadu-Queue-Id: 5130B2306B X-TUID: b8hdYJDSy+82 --zvktn6vxwqbtpcl3 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Mar 18, 2024 at 03:52:44PM +0100, hubert.lombard@ik.me via wrote: > Hi Richard ! >=20 > Le 2024-03-16T16:07:29.000+01:00, Richard Sent > a =C3=A9crit : >=20 > >=C2=A0Hubert, > > > >=C2=A0Your=C2=A0issue=C2=A0is=C2=A0in=C2=A0your=C2=A0operating-system=C2= =A0services=C2=A0field.=C2=A0In=C2=A0the=C2=A0backtrace: > >=C2=A0 > >=C2=A0--8<---------------cut=C2=A0here---------------start------------->= 8--- > >=C2=A0In=C2=A0procedure=C2=A0append:=C2=A0Wrong=C2=A0type=C2=A0argument= =C2=A0in=C2=A0position=C2=A02=C2=A0(expecting > >=C2=A0empty=C2=A0list)=C2=A0#<=C2=A0type:=C2=A0# >=C2=A0--8<---------------cut=C2=A0here---------------end--------------->= 8--- > >=C2=A0 > >=C2=A0You=C2=A0have=C2=A0several=C2=A0services=C2=A0outside=C2=A0of=C2= =A0the=C2=A0(list)=C2=A0call,=C2=A0so=C2=A0you're > >=C2=A0basically=C2=A0running > >=C2=A0 > >=C2=A0--8<---------------cut=C2=A0here---------------start------------->= 8--- > >=C2=A0(append=C2=A0(list=C2=A0(service-1=C2=A0service-2)=C2=A0service-3= =C2=A0service-4 > >=C2=A0%desktop-services)) > >=C2=A0--8<---------------cut=C2=A0here---------------end--------------->= 8--- > >=C2=A0 > >=C2=A0Append=C2=A0only=C2=A0takes=C2=A0lists=C2=A0as=C2=A0arguments.=C2= =A0%desktop-services=C2=A0is=C2=A0a=C2=A0list,=C2=A0but > >=C2=A0bluetooth=C2=A0service=C2=A0and=C2=A0hurd-vm=C2=A0service=C2=A0are= =C2=A0not. >=20 > Thank you :) while/after reading your answer, I have tried to change > my config file >=20 > by adding %base-services like it : >=20 > /etc/config.scm >=20 > --8<---------------cut here---------------start------------->8--- > (services > =C2=A0=C2=A0 (append (list (service gnome-desktop-service-type) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (service cups-service-type) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 (set-xorg-configuration > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (xorg-configuration > (keyboard-layout keyboard-layout)))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0;; Voic= i la liste des services par d=C3=A9faut =C3=A0 laquelle nous > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0;; ajou= tons nos propres services. > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0%deskto= p-services)) >=20 > (services (cons* (service bluetooth-service-type) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0(bluetooth-configuration > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0(auto-enable? #t))) > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0(service hurd= -vm-service-type > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (hur= d-vm-configuration > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (d= isk-size (* 10000 (expt 2 20))) ;10G > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (m= emory-size 1024)))=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 ;1024MiB > =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0%base-service= s)) > --8<---------------cut here---------------end--------------->8--- (Indentation modified to show the actual structure more clearly) The S-exp structure is wrong here. A service declaration is of form ``` (service xxx-service-type (xxx-configuration (field-name value) (another-field another-value))) ``` and the `services` field must be a list of such service declarations. In your configuration snippet the first definition of `services` is valid but the second one is three separate elements (not a list). The first element is a pair (not a list) with elements `(service bluetooth-service-ty= pe)` and `(bluetooth-configuration (auto-enable? #t))`, the second element is a single valid service declaration and the third is a list of service declarations. Also, you are defining the `services` field twice which will not give expected results even if it passes the compiler (hopefully it doesn't). You have to combine the lists and set the `services` field to that. I think %base-services is a subset of %desktop-services, so you should not need both in the same `operating-system` declaration. > Instead of putting the Hurd in %base-services (arbitrarily inserted by > myself), maybe I should create a service like %define-my-service, or > use (modify-services. In Guix one doesn't "put services into %base-services" but instead creates a new list of services which contains the services in %base-services and some additional services. - Saku --zvktn6vxwqbtpcl3 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEoMkZR3NPB29fCOn/JX0oSiodOjIFAmX5QMsACgkQJX0oSiod OjIntA/8D17DxrFUz6XpFS6KKOBSgHXcL11kwsDPzm9DecKVuhDMw/P8GgZv2B3k Udv0gzLlNUcrPnzuhPCcWr6Y3NP/UjEx6BFm1Hxt956Ht+866x5fGPD4Pp8QWLxD EOqGw2NKG/ATAQS9OTcxz2Hu/TneVDMmAoqefKQC8bOXamSGadDx1pdLI5j6abzf PLtLJdA2WDwSSfLFbeM8Ry+u6hokTuOra8xEOsp+L1U8k3BEputFqP+0Iuvk71RP v/W4M3gZgbS/gIMaWXmBFtMVT9wRZ/81gtabYp3o3f3adI6iRMGN7jyjPAiKSzBZ 28UEZxjSIOLsccNqDfxTDd8A8WDtWlu1wGXq3yRZ0LDqY9Xld+LQQLlDTHTQe4xM H3UevEXJukWHk2TVjQnSku/lmo8Xxt8/QffDVYpTkx+JBWPtr0jiXHrxIkPCofx9 PGcu1YXmbRvd92SWT5uP71PkIXm1TXBocJobi0XLUKHFvVdPTidKIQIjI6xtSmtm SJ89qEXKmWo3WKjS75i8+GSO2IQuGpaS5+fmeEsCW/6CgLmQ8CZ+qBE8tpsSeZFa pNRtZyXM8g0PQ7jmFpDs6EhQIthL4A6ukjRF7Winb+vPGmElkhqAsiVgaqoNVlNa 4fikG2Jhwmif3MG13Brf80KBN6J567DnvwDqLvAzx/F8QKOPJEU= =Ro28 -----END PGP SIGNATURE----- --zvktn6vxwqbtpcl3--