From: Chris Marusich <cmmarusich@gmail.com>
To: "Thompson, David" <dthompson2@worcester.edu>
Cc: Hartmut Goebel <h.goebel@crazy-compilers.com>, 25093@debbugs.gnu.org
Subject: bug#25093: Configure file for system-wide substitutes
Date: Sat, 03 Dec 2016 02:33:43 -0800 [thread overview]
Message-ID: <87lgvxjo8o.fsf@gmail.com> (raw)
In-Reply-To: <CAJ=RwfbWpq=EbFLjtJ6-m4abH2Y-Eneawf01uF5Xm_POh20dxw@mail.gmail.com> (David Thompson's message of "Fri, 2 Dec 2016 12:30:32 -0500")
[-- Attachment #1: Type: text/plain, Size: 1883 bytes --]
"Thompson, David" <dthompson2@worcester.edu> writes:
> 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):
--8<---------------cut here---------------start------------->8---
(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"))))))
--8<---------------cut here---------------end--------------->8---
Then you just declare the services as usual, for example:
--8<---------------cut here---------------start------------->8---
(operating-system
(services (cons* (tor-service)
(gnome-desktop-service)
(xfce-desktop-service)
%modified-desktop-services))
--8<---------------cut here---------------end--------------->8---
--
Chris
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 818 bytes --]
prev parent reply other threads:[~2016-12-03 10:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-12-02 17:25 bug#25093: Configure file for system-wide substitutes Hartmut Goebel
2016-12-02 17:30 ` Thompson, David
2016-12-03 10:33 ` Chris Marusich [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
List information: https://guix.gnu.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87lgvxjo8o.fsf@gmail.com \
--to=cmmarusich@gmail.com \
--cc=25093@debbugs.gnu.org \
--cc=dthompson2@worcester.edu \
--cc=h.goebel@crazy-compilers.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 public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).