From: Philip McGrath <philip@philipmcgrath.com>
To: help-guix@gnu.org
Cc: Rodrigo Morales <moralesrodrigo1100@gmail.com>
Subject: Re: How to enable server discovery in foreign distro?
Date: Fri, 19 May 2023 23:51:07 -0400 [thread overview]
Message-ID: <2885916.BddDVKsqQX@bastet> (raw)
In-Reply-To: <CAGxMbPZOa0p905SWOX2Nm9_oMxP+d2skD-HHNKhAL+OndFqbCA@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1139 bytes --]
On Friday, May 19, 2023 4:18:01 PM EDT Rodrigo Morales wrote:
>
> 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.
>
A cleaner way to do this is to run `sudo systemctl edit guix-daemon.service`.
It will open your editor to create a drop-in override file, in this case
/etc/systemd/system/guix-daemon.service.d/override.conf, with a commented-out
version of the base unit file included. You'll want to write something like this:
```
[Service]
ExecStart=
ExecStart=/usr/bin/guix-daemon \
--build-users-group=_guixbuild \
--discover=yes \
--substitute-urls='https://bordeaux-us-east-mirror.cbaines.net https://bordeaux.guix.gnu.org https://ci.guix.gnu.org'
```
The most confusing part is that you need two ExecStart lines, one unsetting the
old value and one setting your new value.
Philip
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
prev parent reply other threads:[~2023-05-20 3:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-19 17:40 How to enable server discovery in foreign distro? Rodrigo Morales
2023-05-19 20:18 ` Rodrigo Morales
2023-05-19 20:55 ` Rodrigo Morales
2023-05-20 4:13 ` Rodrigo Morales
2023-05-20 3:51 ` Philip McGrath [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2885916.BddDVKsqQX@bastet \
--to=philip@philipmcgrath.com \
--cc=help-guix@gnu.org \
--cc=moralesrodrigo1100@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.