From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Bakke Subject: Re: about basic operation of guix sd Date: Tue, 07 Apr 2020 18:27:43 +0200 Message-ID: <87lfn7mfb4.fsf@devup.no> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:50416) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jLr4n-00052l-6H for help-guix@gnu.org; Tue, 07 Apr 2020 12:27:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jLr4l-0006Mw-Vi for help-guix@gnu.org; Tue, 07 Apr 2020 12:27:49 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:52101) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jLr4l-0006LC-He for help-guix@gnu.org; Tue, 07 Apr 2020 12:27:47 -0400 In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: Satoru KURASHIKI , help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Satoru, and welcome to Guix! I hope you will enjoy your stay. :-) Satoru KURASHIKI writes: > hi, > > I happen to know Guix SD recently, and trying to tinkering it. FYI the 'SD' name has been deprecated in favor of 'Guix System'. > I've just managed to "guix init" on my new box, and have questions > about its operations. > # excuse: I looked over the guix manual, but may be overlooking clues... > > Please tell me any of FAQ, Howto, list thread, blog, sample code, or > gist, which would answer: > > - How to unify personal substitutes? > - "guix publish" will serve the substitutes built on that host, and > I want to add substitutes > of another host's > - Is this work as expected? : rsync /gnu/store to repository host to > merge substitutes Syncing /gnu/store will not work without also syncing /var/guix/db. I think what you want to do is on host1 run 'guix publish' as you already found, and on host2 you can then use 'guix install foo =2D-substitute-urls=3D"https://host1 https://ci.guix.gnu.org"' to get substitutes from both host1 and the Guix CI infrastructure. See https://guix.gnu.org/manual/en/guix.html#Invoking-guix-publish for a more complete explanation. To do this through the configuration system, you need 'guix-publish-service-type' and adjusting the 'substitute-urls' field of 'guix-service-type'. > - The right way of treating guix code (or guile code structure?) > - I have to clone guix repo into my home directory? > - Though "guix pull" should have source tree anywhere (in > /gnu/store?), so are there any interfaces > to access them through guix-daemon? > - I want to tweak existing code (package definition) > - I should copy target file to somewhere working directory to edit > or edit target file in the project tree=EF=BC=9F After cloning the Guix repository, you can run Guix directly from the checkout using the "./pre-inst-env" script: see the Contributing section of the manual for how to configure a development environment: https://guix.gnu.org/manual/en/guix.html#Contributing=20 Another alternative is to use 'guix pull --url=3D/your/cloned/repository'. > - Emacs setup (to edit guix configuration) > - I want something like: > - i.e. M-x guix-describe-variables to view document of guix > keywords and jump to its definition > - C-x C-e to evaluate variables (to confirm its values) > - guix keyword completion > - Some linter (flymake/flycheck thing) > - emacs-guix seems to be "guix" command wrapper, so I guess > configuring geiser will make it? You can get completion and jumping through Geiser, but I don't have instructions at hand. Hopefully some of the Emacs gurus can chime in here. :-) --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEEu7At3yzq9qgNHeZDoqBt8qM6VPoFAl6Mqf8ACgkQoqBt8qM6 VPqXEggAjaA1YXv1Fwz3CDMhkac38uVWW8Q8t9xr0TpeoAgdnsheHaMJugm/wUiM k0DH8Mi2Ng5w20Syg9S3C1E7TfF65PTZ863rs7IHJAr2EgJql8ukGSbmwMvd9wAE saZBB4tUXqBz3pzNom/JMHyukDg6Vtc+EGnkGKFMyJ7q53li/1RjjsClt0VL7NwJ 8oEYPUn4k+ZtKGt2U2C5lf+j6AMwuWECNFoQQ90ZrukQvRnwitL/jktDWsSyrMzv 4ff88pSfT8LgLBdx5nS9ssjd+2oe7z9S8U9SlpittBq/SYEp310ccHS+sKytIAUs K9IeQ/5FbfjJvQ41P80wjNNK7MEXtQ== =k6Q8 -----END PGP SIGNATURE----- --=-=-=--