From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id sHlbKhul5V5ucAAA0tVLHw (envelope-from ) for ; Sun, 14 Jun 2020 04:18:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id GLk1Jhul5V7yCQAA1q6Kng (envelope-from ) for ; Sun, 14 Jun 2020 04:18:35 +0000 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 E2C70940391 for ; Sun, 14 Jun 2020 04:18:34 +0000 (UTC) Received: from localhost ([::1]:35572 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkK6K-0008ER-3N for larch@yhetil.org; Sun, 14 Jun 2020 00:18:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:52428) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkK6C-0008EK-Ud for help-guix@gnu.org; Sun, 14 Jun 2020 00:18:25 -0400 Received: from mail-pl1-x629.google.com ([2607:f8b0:4864:20::629]:41889) by eggs.gnu.org with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jkK6A-0001IV-MX for help-guix@gnu.org; Sun, 14 Jun 2020 00:18:24 -0400 Received: by mail-pl1-x629.google.com with SMTP id y17so5413706plb.8 for ; Sat, 13 Jun 2020 21:18:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=asu-edu.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=S6K5t4HIlbsz73h2T4oBlk4AUi8rgCkK9doscvvbyZA=; b=bZx+orfb1YZNQu5H5P8LgkBcSpIKzsIamyCzECjjXa4ptuT1g+jKq7iCjMmng5z0Tc UPTSi2wNrmWcJ11ChpRYs1+9zSEZqCWMuF5SJKh1nHLED/S0Z4KONTKJoo3dIRzCj3XW gjmrTSC1u5DE6/kfxwXbkzSCczJgBo2pSzw9txDakvqda2a8IBRKTu5gJfFJRtd4O+j5 8eSRPYuNKwd342JzyhRH9ZeK+++UtM08cqHQC3zKigCJpvl5GIg2AENYTzZnj3CFji8n 18UXkTxLV6p1U5KyRiGC3TUQVb30YmNL28qYl8vLPo5fE+c8KBwPUfsLTRSPVuRljsyZ Fn3w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=S6K5t4HIlbsz73h2T4oBlk4AUi8rgCkK9doscvvbyZA=; b=s6IhslB5P9yJ7g3HT5cMWvPyBUT/tlxkNBaTx1qKGZCa6uak+qnfxlwh0sus0TEDe7 j8828WUVeQKP/8YUshR/jykJDWPyRDrASfdwZTQEaDQl86h29W2+ed/4DOiN++mdxDJy 90RiRX3QWq/zBV/ZSqCYLeZCZpFPg0lF40wr2GNfDA9wd4NB5t2t0832BpnZr5Ei7lMn 4Y0RsP9Gs387dqAkRTblDiSp3CXas/9WMGVyi4u7MMJQ2iFo6+uXYaJE1jLn4FYFiQtW SDkmhjwN2ykb/xKatvjIbx1uHHWVtWwXGrElE86fD2X8boZzSvIYkHZ6vWNLOeyuKj6m Ojrg== X-Gm-Message-State: AOAM530nsZtIdkc1WNw4ydR5T5X0m7Esk9pFzxvJBQbpinBXFRByIFi3 eZnU5XJyNNdtWx5vexhZ4hjf8/XnvXc= X-Google-Smtp-Source: ABdhPJyH7+yxQAx8lAMqZ5BVBm/v7Cut23iHczYG/IJFG1Vf0p/tqtLyLR+wPPMimHBMdI/LQuNtYg== X-Received: by 2002:a17:90a:8c96:: with SMTP id b22mr6318076pjo.88.1592108300163; Sat, 13 Jun 2020 21:18:20 -0700 (PDT) Received: from ecenter ([2600:1700:83b0:8bd0::7bb]) by smtp.gmail.com with ESMTPSA id w77sm247729pff.126.2020.06.13.21.18.18 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 13 Jun 2020 21:18:19 -0700 (PDT) From: John Soo To: Fulbert Subject: Re: error setting console font in system.scm References: <20200613143227.GB5347@bluewin.ch> Date: Sat, 13 Jun 2020 21:18:18 -0700 In-Reply-To: <20200613143227.GB5347@bluewin.ch> (fulbert@bluewin.ch's message of "Sat, 13 Jun 2020 16:32:27 +0200") Message-ID: <87pna2z3ed.fsf@asu.edu> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2607:f8b0:4864:20::629; envelope-from=jsoo1@asu.edu; helo=mail-pl1-x629.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=asu-edu.20150623.gappssmtp.com header.s=20150623 header.b=bZx+orfb; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=asu.edu (policy=none); spf=pass (aspmx1.migadu.com: domain of help-guix-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=help-guix-bounces@gnu.org X-Spam-Score: -1.11 X-TUID: exLv4XOpSWAC Hello Fullbert, Fulbert writes: > Trying to change console font with the following in "services" section > of my system configuration file : > > ---- > =E2=80=A6 > (services (append (list > =E2=80=A6 > (service console-font-service-type > `(("tty3" . ,(file-append font-terminus "/share/consolefonts/te= r-128n")))) > ) %desktop-services)) > =E2=80=A6 > ---- > > which results in the following error when reconfiguring the system : > > ---- > $ sudo guix system --dry-run reconfigure /etc/config.scm > guix system: error: service 'console-font-tty3' provided more than once > ---- This is because there is already a console-font-service-type in %desktop-services. You will need to modify the existing service instead like below. Note I have not tested this myself but something like it can be found in the documentation of guile association lists https://www.gnu.org/software/guile/manual/html_node/Adding-or-Setting-Alist= -Entries.html ;; At the top of the file (use-modules ... (ice-9 match)) ;; Replace %desktop-services with this: (modify-services %desktop-services (console-font-service-type configuration =3D> (map (match-lambda (("tty3" . f) `("tty3" . (file-append font-terminus "/share/consolefonts/ter-12= 8n"))) ((tty . font) `(,tty . ,font))) configuration))) > I probably missunderstand something and/or ill-format the > configuration=E2=80=A6?=E2=80=A6 Help appreciated. No problem. The error message is saying that such a service would conflict with the existing one. The aim of the snippet is to keep the other tty fonts and update the one on tty3. Hope that helps! - John