Use substitute servers on the local network.
authorMathieu Othacehe <othacehe@gnu.org>
Tue, 24 Nov 2020 13:05:21 +0000 (14:05 +0100)
committerMathieu Othacehe <othacehe@gnu.org>
Sun, 29 Nov 2020 14:08:26 +0000 (15:08 +0100)
commit79f9dee3c4c0e6d21066f142116a537207ae7ba4
tree9e7cf7e45d07a529576eb4addabe578dc35cf7d5
parent276e494b2a1fd87874d80e2bdc3aa1fb833b76f2
Use substitute servers on the local network.

* guix/scripts/discover.scm: New file.
* Makefile.am (MODULES): Add it.
* nix/nix-daemon/guix-daemon.cc (options): Add "discover" option,
(parse-opt): parse it,
(main): start "guix discover" process when the option is set.
* guix/scripts/substitute.scm (%local-substitute-urls): New variable,
(substitute-urls): add it.
* gnu/services/base.scm (<guix-configuration>): Add "discover?"
field,
(guix-shepherd-service): honor it.
* doc/guix.texi (Invoking guix-daemon): Document "discover" option,
(Base Services): ditto.
Makefile.am
doc/guix.texi
gnu/services/base.scm
guix/scripts/discover.scm [new file with mode: 0644]
guix/scripts/substitute.scm
nix/nix-daemon/guix-daemon.cc