From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id IPSiEa4+RGDeZgAA0tVLHw (envelope-from ) for ; Sun, 07 Mar 2021 02:47:10 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 2ExGDa4+RGAMMgAAbx9fmQ (envelope-from ) for ; Sun, 07 Mar 2021 02:47: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 5CA471BD6F for ; Sun, 7 Mar 2021 03:47:09 +0100 (CET) Received: from localhost ([::1]:49586 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lIjRj-0001CR-Sa for larch@yhetil.org; Sat, 06 Mar 2021 21:47:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34802) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIjRb-0001CH-AO for guix-devel@gnu.org; Sat, 06 Mar 2021 21:46:59 -0500 Received: from mail-40130.protonmail.ch ([185.70.40.130]:59173) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lIjRY-0004uO-3d for guix-devel@gnu.org; Sat, 06 Mar 2021 21:46:57 -0500 Date: Sun, 07 Mar 2021 02:46:41 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail; t=1615085211; bh=B/Q7zrU0HB37gFwfJiz1gyl9EgaiYBEgEPguYNLr2Uc=; h=Date:To:From:Reply-To:Subject:From; b=bEYp5hEhrFvHZJ/r3dfqE554QlmUa8yZOtBBFVHZvD/8lNO6jPU5q4W0OWW3Ugtt7 tbmDv+BMQoWKYAKrKkZ+1fdTjc1qpoBp/NLPSUXkY4dbne7MvP7ZOhP0ehXT+Jdt06 L2Vazi9v37OL5UvNDDnH8Kk8y2yqGsnsFWhoja9w= To: "guix-devel@gnu.org" From: raid5atemyhomework Subject: Adding Substitute Mirrors page to installer Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.130; envelope-from=raid5atemyhomework@protonmail.com; helo=mail-40130.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H3=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=1615085230; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=B/Q7zrU0HB37gFwfJiz1gyl9EgaiYBEgEPguYNLr2Uc=; b=G5DyaX4GBzSf72XMaEBM8Iq23QhFYJ0/5WHMmCs+cz9aSJoJhZxAxtJGqnrdAGgBg2JEoS oLkUMrkCeWfoEkswbFFUlP3Hb0GygqzFqxhu25aj8G1p2hiOOkH8MNDOG0ZAQx6BdVHn4K 7Tt4//tTIIFCYk5tLBJ2qeuq73dwMxXX4PS8wsW9Yx/WHcAtI8ja21KXGqHTpgzSPf/7ac dV+EGI6phah1rP6nspIhbIJH/wKz7f7v76pQcz8ksJ1ubIj1i0Hdx9bQMWCAKlnL9+4ZRI w7E6njd58ypOc8d3VKSdgCRsW6EtiTdehqYIslHANTRSsJv9B7CqgWKRjnFxgQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1615085230; a=rsa-sha256; cv=none; b=ZWQOxJ3/3IjCxZIcqovHJL8i6mM/2wYRz2h9t3+S93GiFu35o9i+oBovICiXi6R4DDe+Ng Vx2xt5wz9Inph0TH5D2jhGosFscfUvYPh5ETxi7/2kHmtbrBBFCUWsJvH9t6W/YIFakdis cW0fypiNYuEDLfp5Z/mqdNh6cXyKVE0a+D5+deP33XjN90lVCZ6T2800qUXH/srNyo4iup 0QJ+qFbUi3NDKslYoqDrl2m60vnimtiAj7x69BrL/LkeNEFgOnCySN7Dx264FRvuMRxlDH sOVjV/pkep8xfFms+QR/IUwQTYLbbjo7XcImnBBzRwKARAoxUbYXrlPTPWe6Qw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=bEYp5hEh; 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.07 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=protonmail.com header.s=protonmail header.b=bEYp5hEh; 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: 5CA471BD6F X-Spam-Score: -3.07 X-Migadu-Scanner: scn0.migadu.com X-TUID: cwwjbNLZ5QXw Hi Guix Developers, I want to add a page to the installer to allow selection of substitute mirr= ors. 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 th= ink putting that option to the installer would be beneficial to others in s= imilar circumstances. However, the current `(gnu installer services)` assumes that snippets are a= dded to a list of services. To implement substitute mirrors, I need to inse= rt a `modify-services` form with a `(guix-service-type config =3D> (guix-co= nfiguration (inherit config) (substitute-urls ))`. What I want to propose is something like this: * Add a `snippet-type` field to ``, default `'service-list`= . * The field can instead be set to `'modify-services` to mean that the sni= ppet is to be in a `modify-services` form. * In `system-services->configuration`, filter services according to `snippe= t-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.guix.g= nu.org`) and the default unmirrored `ci.guix.gnu.org`, with `system-service= -type` of `'substitute-urls`. * Then in `(gnu installer newt services)`, add a page for `'substitute-urls= `. What do you think? Thanks raid5atemyhomework