From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <help-guix-bounces+larch=yhetil.org@gnu.org>
Received: from mp12.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by ms9.migadu.com with LMTPS
	id yPZgMIziZ2RlLwAASxT56A
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 19 May 2023 22:56:44 +0200
Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	by mp12.migadu.com with LMTPS
	id uFlKMIziZ2TLWgEAauVa8A
	(envelope-from <help-guix-bounces+larch=yhetil.org@gnu.org>)
	for <larch@yhetil.org>; Fri, 19 May 2023 22:56:44 +0200
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 74B98B665
	for <larch@yhetil.org>; Fri, 19 May 2023 22:56:44 +0200 (CEST)
Received: from localhost ([::1] helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <help-guix-bounces@gnu.org>)
	id 1q079D-0006fc-Gd; Fri, 19 May 2023 16:56:23 -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 <moralesrodrigo1100@gmail.com>)
 id 1q079B-0006dY-4M
 for help-guix@gnu.org; Fri, 19 May 2023 16:56:21 -0400
Received: from mail-vk1-xa36.google.com ([2607:f8b0:4864:20::a36])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <moralesrodrigo1100@gmail.com>)
 id 1q078k-0003Kl-JH
 for help-guix@gnu.org; Fri, 19 May 2023 16:55:58 -0400
Received: by mail-vk1-xa36.google.com with SMTP id
 71dfb90a1353d-456f19307f6so806314e0c.2
 for <help-guix@gnu.org>; Fri, 19 May 2023 13:55:54 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20221208; t=1684529753; x=1687121753;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:from:to:cc:subject:date
 :message-id:reply-to;
 bh=TClmeuyqLCqwPUAUc5dmFAfcPvK7fUvKpORfAVDJ9PA=;
 b=FN8mMTzLcxtLiZHBd8VAoA/5VssQdMQGfFlXERk5dsXQFgByVovP77RNffEu10ZrQY
 WSuTnzq1lDn+nEcJmKDUZvbYO0yqraBWupPNQMxAzipfjNBkFJu83QOWsFpnufa3gM+l
 azuZRxc7P9zznJqt8NYkSoEgneatDp+7R2KviLXgc1wOrtApvMsXztlvCBqi3lFcHbly
 G4BjdmkabV7J6Eggnx5wVl6zOIJEsmJQK5rEU9xPBHZkvr08nLLwr27EONtNpXpJAXSg
 agAD/2t6K4yftiMwmxF6D9h4v08rVgPNe1W4EM/ode4EtWMNO9VuJDZtEDa47Ak4cNZv
 pQkw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20221208; t=1684529753; x=1687121753;
 h=content-transfer-encoding:to:subject:message-id:date:from
 :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc
 :subject:date:message-id:reply-to;
 bh=TClmeuyqLCqwPUAUc5dmFAfcPvK7fUvKpORfAVDJ9PA=;
 b=UHza2xIg7ejEewAHeBiis2cELCngHNlQ9CWrCwsJkCVkoxWsa0ry4wL8xP8wT9YiPh
 aF2HQ7Wde/ouPC2rvPcz62lIDgzrK5K2Esdhy41izTOK552bnOs7emVq2CNgxiO78Nk6
 m0ELKfsK6Hxtfm+3xXiLroziGIhlzQrw3i/JSjXb6mkvDmgm6PxHOmAJiOzcq7iZGv67
 tOkJwd83+sDUIr5OtGzytTKB80086x0KKB+MRzzFYBKUd3BZXKoeTu5lYmRrhqUsUw8R
 aHXuRhTuaZST9UU8J12+N85vm6JJM6rrXYVLZWr2OlSt8sI8wUowLZEwH08RYyELvSvK
 dLDA==
X-Gm-Message-State: AC+VfDxgz3KA2LwLtnkI/x7XJCb66h+7wOxjTB86H+8L93js5S94LSBA
 9E5c6o0dYlO/QE41koLyvK3M+wKGF/Igg3ozgauKPulgjm0=
X-Google-Smtp-Source: ACHHUZ7XbqV19oYfFZx4LSemcpEq4TXZjoWURxasyEacU42ypZzxWsv6uDsLt/792DBJ9YP0D5kOJOWVduMI46/uuMA=
X-Received: by 2002:a1f:d685:0:b0:456:d534:f2ab with SMTP id
 n127-20020a1fd685000000b00456d534f2abmr870119vkg.12.1684529753170; Fri, 19
 May 2023 13:55:53 -0700 (PDT)
MIME-Version: 1.0
References: <CAGxMbPbMbiJ3Dj6rvQfjn74+N5b964h=SrK28KuC+Qu3htjv-A@mail.gmail.com>
 <CAGxMbPZOa0p905SWOX2Nm9_oMxP+d2skD-HHNKhAL+OndFqbCA@mail.gmail.com>
In-Reply-To: <CAGxMbPZOa0p905SWOX2Nm9_oMxP+d2skD-HHNKhAL+OndFqbCA@mail.gmail.com>
From: Rodrigo Morales <moralesrodrigo1100@gmail.com>
Date: Fri, 19 May 2023 20:55:36 +0000
Message-ID: <CAGxMbPY6T7taCDXS=3gk05iF=i9YzsF2gNU9pP9DBjycXRuT-g@mail.gmail.com>
Subject: Re: How to enable server discovery in foreign distro?
To: help-guix@gnu.org
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Received-SPF: pass client-ip=2607:f8b0:4864:20::a36;
 envelope-from=moralesrodrigo1100@gmail.com; helo=mail-vk1-xa36.google.com
X-Spam_score_int: -5
X-Spam_score: -0.6
X-Spam_bar: /
X-Spam_report: (-0.6 / 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_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, NUMERIC_HTTP_ADDR=1.242,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=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: <help-guix.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/help-guix>
List-Post: <mailto:help-guix@gnu.org>
List-Help: <mailto:help-guix-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/help-guix>,
 <mailto:help-guix-request@gnu.org?subject=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
ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684529804; a=rsa-sha256; cv=none;
	b=Wxa1J73m38DwWzpgcFxOP4T7o8hWA2exYRiMrCgSPEdCa4sUjXz1JFfNVi02KTwPKDHLMc
	EExmqn0SMbRkLhgcKgMdghq2OYnVSvo+YA3+rVNQDcdZOl9bsOsLmV8HmzhB94wg0p/Wle
	/L/nlczw2RlbIINgMc9A1W4hOf8NaVXO4qI/yUJmeumWnyEDB4BwUOAlCQ5prp+WeNMpcQ
	6stxNtQwvTk7ycNFtFeMMgS0QS7Z+Jwv0koI0jLwauaKyQbSRwT2Wf751SIjhR1pt9x2SP
	nXioLxd1lRzvWU0eiXH3mVH6m+V1hf0WIQvU5sTbVl3FU82e2BEnixBCJCGKWw==
ARC-Authentication-Results: i=1;
	aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=FN8mMTzL;
	dmarc=pass (policy=none) header.from=gmail.com;
	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"
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org;
	s=key1; t=1684529804;
	h=from:from:sender:sender: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=TClmeuyqLCqwPUAUc5dmFAfcPvK7fUvKpORfAVDJ9PA=;
	b=oOmnSm2SCYtDOxUqk95yjVQtD5H0oC6JYTqYRFiDob8vG/mp9TLQkTcDblTzxLPttluo4S
	Y19vfgwyFW2pLFZCizCX11ljtnYCR4H4ZWI5EEUmsP3v33AMTiBAb3OXXqQfWtr8FtdDzg
	x7RZGv7cfvVx3ifs9CHfUHmbKxrN54O3SCzg60tA+1sTmse+z0+UqU8AUq9Xn0n5v1u1X6
	grTGaI3KizNlcSUs0hIj/zl42dTcY0c9bZWZtIv6XeKGzMhCUMR4AMB9WBDiPJZaEdsycK
	6gNuGlCyhjl3H90sXoClJti0innqWgpr5JhFc4xKThLZ7SO/YcARBng7xuVtgw==
X-Migadu-Spam-Score: -5.78
X-Spam-Score: -5.78
X-Migadu-Queue-Id: 74B98B665
X-Migadu-Scanner: scn0.migadu.com
Authentication-Results: aspmx1.migadu.com;
	dkim=pass header.d=gmail.com header.s=20221208 header.b=FN8mMTzL;
	dmarc=pass (policy=none) header.from=gmail.com;
	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"
X-TUID: gccqs0FOrd9a

With regards to the pending question which I mentioned in my previous
message, I think I have found the answer.

The system where I was installing the foreign distro showed a big list
of packages to build. However, after I run the following command, that
list was greatly reduced, so I suppose that the following command allows
retrieving built derivations from other systems which makes it
unnecessary to build those derivations again.

,----
| guix archive --authorize < key.pub
`----

On Fri, 19 May 2023 at 20:18, Rodrigo Morales
<moralesrodrigo1100@gmail.com> wrote:
>
> Table of Contents
> _________________
>
> 1. The solution
> 2. Pending question
>
>
> 1 The solution
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>   I managed to do it. I'll share some relevant information for those
>   interested.
>
>   [This section] in the Info manual helped me do what I was looking
>   for. As specified in that part of the manual, I need to edit
>   guix-daemon.service. In my system, there were 4 files with that name
>   (see code block below)
>
>   ,----
>   | rdrg@desktop:~$ locate -r 'guix-daemon.service$'
>   | /etc/systemd/system/multi-user.target.wants/guix-daemon.service
>   | /run/systemd/units/invocation:guix-daemon.service
>   | /usr/lib/systemd/system/guix-daemon.service
>   | /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/g=
uix-daemon.service
>   `----
>
>   The file `/run/systemd/units/invocation:guix-daemon.service' was a
>   broken symbolic link (see code block below), so I knew that I
>   shouldn't edit this file.
>
>   ,----
>   | rdrg@desktop:~$ file /run/systemd/units/invocation:guix-daemon.servic=
e
>   | /run/systemd/units/invocation:guix-daemon.service: broken symbolic
> link to 8dbd9f7458e74f979a2b8d214ed47d42
>   `----
>
>   The file
>   `/var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/gu=
ix-daemon.service'
>   wsa empty (see code block below), so I knew that I shouldn't edit this
>   file.
>
>   ,----
>   | rdrg@desktop:~$ file
> /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/guix-=
daemon.service
>   | /var/lib/systemd/deb-systemd-helper-enabled/multi-user.target.wants/g=
uix-daemon.service:
> empty
>   `----
>
>   The file
>   `/etc/systemd/system/multi-user.target.wants/guix-daemon.service' was
>   a symbolic link to `/usr/lib/systemd/system/guix-daemon.service' and,
>   for that reason, I ended up editing
>   `/usr/lib/systemd/system/guix-daemon.service'. I edited the line
>   containing `ExecStart' and added the IP address of my system from
>   which I wanted to retrieve the packages.
>
>   ,----
>   | rdrg@desktop:~$ cat /usr/lib/systemd/system/guix-daemon.service
>   | # This is a "service unit file" for the systemd init system to launch
>   | # 'guix-daemon'.  Drop it in /etc/systemd/system or similar to have
>   | # 'guix-daemon' automatically started.
>   |
>   | [Unit]
>   | Description=3DBuild daemon for GNU Guix
>   |
>   | [Service]
>   | ExecStart=3D/usr/bin/guix-daemon --build-users-group=3D_guixbuild
> --substitute-urls=3D'http://192.168.1.39:8080 https://ci.guix.gnu.org
> https://bordeaux.guix.gnu.org'
>   | Environment=3DLC_ALL=3DC.UTF-8
>   | StandardOutput=3Dsyslog
>   | StandardError=3Dsyslog
>   |
>   | # Work around a nasty systemd =E2=80=98feature=E2=80=99 that kills th=
e entire process tree
>   | # (including the daemon!) if any child, such as cc1plus, runs out of =
memory.
>   | OOMPolicy=3Dcontinue
>   |
>   | # Despite the name, this is rate-limited: a broken daemon will
> eventually fail.
>   | Restart=3Dalways
>   |
>   | # See <https://lists.gnu.org/archive/html/guix-devel/2016-04/msg00608=
.html>.
>   | # Some package builds (for example, go@1.8.1) may require even more t=
han
>   | # 1024 tasks.
>   | TasksMax=3D8192
>   |
>   | [Install]
>   | WantedBy=3Dmulti-user.target
>   `----
>
>   Finally, I executed the following two commands.
>
>   ,----
>   | systemctl daemon-reload
>   | systemctl restart guix-daemon.service
>   `----
>
>   When I executed `guix home', the packages were retrieved from my other
>   system (see line below `substitute: updating substitutes from
>   'http://192.168.1.39:8080'... 100.0%').
>
>   ,----
>   | rdrg@desktop:~$ guix home -L ~/guix-packages reconfigure
> ~/guix-config/home-configuration.scm
>   | hint: Consider installing the `glibc-locales' package and defining
> `GUIX_LOCPATH', along these lines:
>   |
>   |      guix install glibc-locales
>   |      export GUIX_LOCPATH=3D"$HOME/.guix-profile/lib/locale"
>   |
>   | See the "Application Setup" section in the manual, for more info.
>   |
>   | guix home: warning: cannot determine provenance for current system
>   | substitute: updating substitutes from 'http://192.168.1.39:8080'... 1=
00.0%
>   | substitute: updating substitutes from 'https://ci.guix.gnu.org'... 10=
0.0%
>   | substitute: updating substitutes from
> 'https://bordeaux.guix.gnu.org'... 100.0%
>   | The following derivations will be built:
>   |   /gnu/store/kdlm30fl3cv6r0ww2njm0d7w8cipjpyj-home.drv
>   |   /gnu/store/76835anafmiz8ngx2aqwynps72m0wmgd-setup-environment.drv
>   | (... some omitted lines ...)
>   `----
>
>
> [This section]
> <https://guix.gnu.org/manual/en/html_node/Getting-Substitutes-from-Other-=
Servers.html>
>
>
> 2 Pending question
> =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
>
>   I was able to download packages from my other system without having
>   to perform the following step which is mentioned in [the
>   aforementioned part of the manual].
>
>   ,----
>   | guix archive --authorize < key.pub
>   `----
>
>   I wonder whether this command is relevant in this context or not. Any
>   information is appreciated.
>
>
> [the aforementioned part of the manual]
> <https://guix.gnu.org/manual/en/html_node/Getting-Substitutes-from-Other-=
Servers.html>