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 eDP7K25H5l7+NgAA0tVLHw (envelope-from ) for ; Sun, 14 Jun 2020 15:51:10 +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 iZGpJ25H5l4gAgAA1q6Kng (envelope-from ) for ; Sun, 14 Jun 2020 15:51:10 +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 4863294001C for ; Sun, 14 Jun 2020 15:51:09 +0000 (UTC) Received: from localhost ([::1]:47512 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jkUuZ-0004yA-V9 for larch@yhetil.org; Sun, 14 Jun 2020 11:51:07 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkUuM-0004xz-8I for help-guix@gnu.org; Sun, 14 Jun 2020 11:50:54 -0400 Received: from vimdzmsp-sfwd03.bluewin.ch ([195.186.120.132]:39365) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jkUuJ-0007a7-JW for help-guix@gnu.org; Sun, 14 Jun 2020 11:50:53 -0400 Received: from bluewin.ch ([85.5.44.62]) by vimdzmsp-sfwd03.bluewin.ch Swisscom AG with ESMTPA id kUuDj3cNuXFgykUuEj8m34; Sun, 14 Jun 2020 17:50:46 +0200 X-Bluewin-Spam-Analysis: v=2.3 cv=I/8bu+og c=1 sm=1 tr=0 a=bLoAJnPGBKLbGpzEBMhwHQ==:117 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=kNkhVftci21lcmyFvkEA:9 a=QEXdDO2ut3YA:10 a=gtfLiqfYo8wA:10 a=yUAwjqQRXxwA:10 a=_FVE-zBwftR9WsbkzFJk:22 X-Bluewin-Spam-Score: 0.00 X-FXIT-IP: IPv4[85.5.44.62] Epoch[1592149846] X-Bluewin-AuthAs: fulbert@bluewin.ch Date: Sun, 14 Jun 2020 17:50:45 +0200 From: Fulbert To: John Soo Subject: Re: error setting console font in system.scm Message-ID: <20200614155045.GA1605@bluewin.ch> References: <20200613143227.GB5347@bluewin.ch> <87pna2z3ed.fsf@asu.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <87pna2z3ed.fsf@asu.edu> X-CMAE-Envelope: MS4wfHVqHZ+HCBmbRRVgNsXyoNl/EdSkm724ooSSg2aUvSL7eL63RUkDfcfn3P31mR03vG5hYuMEF2eNNx2q10tSpYl+pUU5DXvDAbwE2lIT3R0oOiaUZLtc OkVhxGQR5hQsQktfprgDCVbotkLBIjMnFYuOUEXKkoQ7+1CqNcGGJ4F4ddzJEuN2LYyGFLtWsgDaMA== Received-SPF: pass client-ip=195.186.120.132; envelope-from=fulbert@bluewin.ch; helo=vimdzmsp-sfwd03.bluewin.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/06/14 11:50:46 X-ACL-Warn: Detected OS = Linux 3.1-3.10 [fuzzy] X-Spam_score_int: -35 X-Spam_score: -3.6 X-Spam_bar: --- X-Spam_report: (-3.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1, 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=none; dmarc=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.01 X-TUID: NCyGF0HP+gLH On Sat, Jun 13, 2020 at 09:18:18PM -0700, John Soo wrote: > Hello Fullbert, > > Fulbert writes: > > > Trying to change console font with the following in "services" section > > of my system configuration file : > > > > ---- > > … > > (services (append (list > > … > > (service console-font-service-type > > `(("tty3" . ,(file-append font-terminus "/share/consolefonts/ter-128n")))) > > ) %desktop-services)) > > … > > ---- > > > > 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 => > (map > (match-lambda > (("tty3" . f) > `("tty3" . (file-append font-terminus "/share/consolefonts/ter-128n"))) > ((tty . font) `(,tty . ,font))) > configuration))) > > > I probably missunderstand something and/or ill-format the > > configuration…?… 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! Indeed! It works now. Thank you for your Help John ! For this to work though, I just had to correct a typo : add a `comma` (to _unquote_, if I'm not wrong) before the `(file-append …`. So, for reference : ---- ;; 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 => (map (match-lambda (("tty3" . f) `("tty3" . ,(file-append font-terminus "/share/consolefonts/ter-128n.psf.gz"))) ((tty . font) `(,tty . ,font))) configuration))) ----