"Thompson, David" <dthompson2@worcester.edu> writes:
Toggle quote (16 lines)
> On Fri, Dec 2, 2016 at 12:25 PM, Hartmut Goebel
> <h.goebel@crazy-compilers.com> wrote:
>> Hi,
>>
>> when publishing packages in the local network, one wants to use this
>> substitute without passing --substitute-urls on every relevant run on guix.
>>
>> 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 only .
>
> 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):
Toggle snippet (11 lines)
(define %modified-desktop-services
(modify-services %desktop-services
(guix-service-type config =>
(guix-configuration
(inherit config)
(substitute-urls
'("https://hydra-mirror.marusich.info"
"https://mirror.hydra.gnu.org"
"https://hydra.gnu.org"))))))
Then you just declare the services as usual, for example:
Toggle snippet (7 lines)
(operating-system
(services (cons* (tor-service)
(gnome-desktop-service)
(xfce-desktop-service)
%modified-desktop-services))
-----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-----