From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id eAkOKsreRmBEdwAA0tVLHw (envelope-from ) for ; Tue, 09 Mar 2021 02:34:50 +0000 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id MEjfJcreRmDsRQAA1q6Kng (envelope-from ) for ; Tue, 09 Mar 2021 02:34:50 +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 07B641F6AE for ; Tue, 9 Mar 2021 03:34:50 +0100 (CET) Received: from localhost ([::1]:33992 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lJSCv-0000YP-6x for larch@yhetil.org; Mon, 08 Mar 2021 21:34:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:44784) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJSCg-0000XE-2O for guix-devel@gnu.org; Mon, 08 Mar 2021 21:34:34 -0500 Received: from mail-40141.protonmail.ch ([185.70.40.141]:47872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lJSCd-0004i0-Ew for guix-devel@gnu.org; Mon, 08 Mar 2021 21:34:33 -0500 Date: Tue, 09 Mar 2021 02:34:18 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1615257266; bh=zxkxL6OTKx815ICn2ZEmF3YH0U9aQt13Mb6Hi7tqk4w=; h=Date:To:From:Reply-To:Subject:In-Reply-To:References:From; b=nfjccQmj+Np9JNa2WEE8rBUwBQc0UF9r6VNLXRoAh3V9jvIwBg3oJIPnmDvg3HfFP I+hcamnt9DZJ/Jk97qvcmdwk971hmR7hbXbl5mWRNSu62Xbuh5BdDp9hjQofU1R3H0 E6dGgfXrfas2J+PBis2mPKhQ2sB0pCQgEEJNVSeI= To: "guix-devel@gnu.org" From: raid5atemyhomework Subject: Re: Adding Substitute Mirrors page to installer Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.141; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40141.protonmail.ch 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: raid5atemyhomework Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1615257290; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=zxkxL6OTKx815ICn2ZEmF3YH0U9aQt13Mb6Hi7tqk4w=; b=Hmr2v83T3MWQQ2OJnahLDhczhg+PxKjHrAkqT6WQz0vE9s6mEGBE7zZuBW5qvELndROwuc q/gWa9SGWTQQbfINNu8hdEboVojkfRlNJrCBkos4w7zZUJCBa/d0/0DBRdl36FtI+prKwu q/k560WcxcjhYdh/fc0FTLARfhf94vaakokEduFgjNQE2+HohP6muDkUTT/VuzWDc4Jdg/ e2aUDiiCrEKZcCjyPL1BFdj14MaJcwy9nk9cBuFtOZhnBsnFlbEXAqldC1CIrZXhedIdja XR1JSj8BxPS6hOIO6jreHtCbtPWN4eqALFBrQ5tIegHPt7vNj/Yf80BgIWur5g== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615257290; a=rsa-sha256; cv=none; b=NdlKwepOTM411hy3y8Q9HX3Mtaz5MTMqU+VwnPgj4aowttG52qnG7pTsbtGYVhJ/tqbCJo 6Xh2+4lONjjIo+6lcE6+xmJQoes8FD6bg0wrKZwduaCAJY3orDy7F8eO7xKF5jjl4br0Ll oPyzRDtkBkyylgeuieKL+JPMN3//6sjaSPjkE5IRw1KQuaTNSJ2+Fn0foi8lV1spUYq0qd CQ+x6QD+Zk5+kccEwrpICn+sGzW1Hi2rbnW3EQ9FqhTEXzTyFyJ+9uddAWR/lNt1BqlhU2 rbdiZQJa9Gy/v7DyMF97A28hanSTR7Ll+HpRrVPujIq5US9lww9fuDAHlu8mog== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=nfjccQmj; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -3.08 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=nfjccQmj; dmarc=pass (policy=quarantine) header.from=protonmail.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 07B641F6AE X-Spam-Score: -3.08 X-Migadu-Scanner: scn0.migadu.com X-TUID: Fv+z23QBYiJu BUMP > Hi Guix Developers, > > I want to add a page to the installer to allow selection of substitute mi= rrors. In particular, from my ISP, the SJTU mirror is significantly faster = (1MB/s->5MB/s) than directly from `ci.guix.gnu.org` (4kB/s->40kB/s), so I t= hink putting that option to the installer would be beneficial to others in = similar circumstances. > > However, the current`(gnu installer services)` assumes that snippets are = added to a list of services. To implement substitute mirrors, I need to ins= ert a `modify-services` form with a `(guix-service-type config =3D> (guix-c= onfiguration (inherit config) (substitute-urls ))`. > > What I want to propose is something like this: > > - Add a `snippet-type` field to ``, default `'service-l= ist`. > - The field can instead be set to `'modify-services` to mean that t= he snippet is to be in a `modify-services` form. > - In `system-services->configuration`, filter services according to `sn= ippet-type` and put the snippets in the appropriate parts of the `service` = form. > > - Add entries for the SJTU mirror (with fallback to the original `ci.gu= ix.gnu.org`) and the default unmirrored `ci.guix.gnu.org`, with `system-ser= vice-type` of `'substitute-urls`. > > - Then in `(gnu installer newt services)`, add a page for `'substitute-= urls`. > > What do you think? > > Thanks > raid5atemyhomework >