From mboxrd@z Thu Jan 1 00:00:00 1970 From: david.larsson@selfhosted.xyz Subject: Re: A few questions about channels Date: Thu, 25 Apr 2019 10:18:07 +0200 (CEST) Message-ID: References: <20190424224654.td7fwnjjf4hnguyc@cf0> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:51405) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hJZaT-0007uP-Eg for help-guix@gnu.org; Thu, 25 Apr 2019 04:18:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hJZaR-0004gN-7E for help-guix@gnu.org; Thu, 25 Apr 2019 04:18:32 -0400 Received: from server0.selfhosted.xyz ([185.147.237.19]:53066) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hJZaQ-0004be-H1 for help-guix@gnu.org; Thu, 25 Apr 2019 04:18:31 -0400 In-Reply-To: <20190424224654.td7fwnjjf4hnguyc@cf0> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: ison Cc: help-guix@gnu.org On Wed, 24 Apr 2019, ison wrote: > Several questions about channels have been on my mind which I haven't b= een able to find any documentation on. So I figured I would ask them all = in one place since they seem like fairly standard questions that could he= lp others setting up channels in the future as well. > > 1) Is it possible to make a channel from a local git repository? (That = is to say, a directory on the local machine initialized as a git reposito= ry) > Yes, for example, cat ~/.config/guix/channels.scm (cons (channel (name 'my-personal-packages) (url "file:///home/myuser/src/my-guix-packages")) %default-channels) where the my-guix-packages directory is a git repo which has committed pa= ckageModN.scm files. > 2) Is it possible to use private remote repositories as channels? The i= ssue here seems to be one of authentication. I'm wonder if there is (or s= hould be) an "authentication" field one would add to the channel definiti= on in the channels.scm file. > I agree it would be nice to have. The git-fetch method is defined here: h= ttps://github.com/guix-mirror/guix/blob/012bf5c4c03e30633f137960bd0677e20= 4c638a7/guix/build/git.scm and I think it can be modified without too muc= h effort to include an argument for the -key flag to the git command. I a= m not sure though whether git-fetch will have access to the home user's d= irectory in case you provide let's say ~/.ssh/id_rsa as argument. Another= possibility would be to check the GIT_SSH_COMMAND env variable. I suppos= e you also need to make sure ssh is available for git-fetch. -- V=C3=A4nliga h=C3=A4lsningar / Best Regards David L