From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Marusich Subject: bug#25093: Configure file for system-wide substitutes Date: Sat, 03 Dec 2016 02:33:43 -0800 Message-ID: <87lgvxjo8o.fsf@gmail.com> References: <5841AE98.4030004@crazy-compilers.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cD7du-0007a8-GL for bug-guix@gnu.org; Sat, 03 Dec 2016 05:34:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cD7dq-0004TO-LV for bug-guix@gnu.org; Sat, 03 Dec 2016 05:34:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:35493) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cD7dq-0004TK-IK for bug-guix@gnu.org; Sat, 03 Dec 2016 05:34:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cD7dq-00038u-79 for bug-guix@gnu.org; Sat, 03 Dec 2016 05:34:02 -0500 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: (David Thompson's message of "Fri, 2 Dec 2016 12:30:32 -0500") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: "Thompson, David" Cc: Hartmut Goebel , 25093@debbugs.gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable "Thompson, David" writes: > On Fri, Dec 2, 2016 at 12:25 PM, Hartmut Goebel > wrote: >> Hi, >> >> when publishing packages in the local network, one wants to use this >> substitute without passing --substitute-urls on every relevant run on gu= ix. >> >> I suggest implementing a config-file for storing the substitute-urls, >> much like the sources.list on Debian systems. >> >> In the long run we'll need this for enterprise setup anyway :-) >> Enterprises tend to fetch software from their internal repositories onl= y . > > Just run the daemon with the subsitute URLs you want using the > --substitute-urls flag. The way to do this may not be obvious unless you've done it before. Here's an example of how I do this in my own operating system config (for details, see '(guix) Service Reference' for the documentation of the 'modify-services' syntax): =2D-8<---------------cut here---------------start------------->8--- (define %modified-desktop-services (modify-services %desktop-services (guix-service-type config =3D> (guix-configuration (inherit config) (substitute-urls '("https://hydra-mirror.marusich.info" "https://mirror.hydra.gnu.org" "https://hydra.gnu.org")))))) =2D-8<---------------cut here---------------end--------------->8--- Then you just declare the services as usual, for example: =2D-8<---------------cut here---------------start------------->8--- (operating-system (services (cons* (tor-service) (gnome-desktop-service) (xfce-desktop-service) %modified-desktop-services)) =2D-8<---------------cut here---------------end--------------->8--- =2D-=20 Chris --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJYQp+HAAoJEN1AmhXYIkadWiIQAJIs2ddQD6HTSGm7v8BghMwM 7edts/bBt4XfLnH36sWmcT1kJWJTn9SuTeTzqpAoMMsWtbRhPBev5Qjl6+CI25OG 0Mk8na1bTf/zPlaqxNVxUtWnUrs6PLETprh7QlU78waGaYVm5vutxXO0fHR6bQ+r m5GD6NGO7F11+rNQZgzSGaci5wp7E2dQOEhtH6WGsxeXZxUWbEvExntlkTS4hxkk zDC9rJgGHayQDrzZB3jpJ5DtJyZ4iKwvb05qDSwNXTz+Y8Vkal7MBibZnZaShWVi AMxfU2Tx1MEbqhogB+D0z4qpW4da+ZdgA8NlS6xAzJ61eHqDhSfkqtamhiEvJXZP LEQ4Fr9HsxTml1iwltCvu54Kmy6svTQUDwbPj7K5rKS3XSW3af1i0bVAT8p7s611 5ELWh3H/xiNr6cMKs02kjRskAQQbAAa3LGvPSjOvY39U+IYj8Gw76wXBgpHf/IDk YWeva5JLOwK/ir5LwQhm1MZRGAIThMPCRT9TPvPduLuHcDjlyPtPZ9/TQdqFu0VX 0IZgOP2ZSBPeKkpaFXvK3ETB/7+LSijWpqXAdT84CFA6RhKh0OmohI3r05eX7sS3 RTAn6TtLKDcrmpVwfScXvnf66WUMem1eTN7LHrBSZO/vi6TDgNkCeNLL1/17hU1l 7ARcxrNxq62rL8xremKY =DcOn -----END PGP SIGNATURE----- --=-=-=--