From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giovanni Biscuolo Subject: Re: how to split config.scm in multiple files Date: Tue, 27 Nov 2018 18:57:08 +0100 Message-ID: <87in0ixv2j.fsf@roquette.mug.biscuolo.net> References: <87va4w13mx.fsf@roquette.mug.biscuolo.net> <87pnuxb6ws.fsf@gnu.org> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38061) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gRhbr-0005Aj-O5 for help-guix@gnu.org; Tue, 27 Nov 2018 12:57:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gRhbo-0007wc-HI for help-guix@gnu.org; Tue, 27 Nov 2018 12:57:19 -0500 In-Reply-To: <87pnuxb6ws.fsf@gnu.org> 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: Ludovic =?utf-8?Q?Court=C3=A8s?= Cc: help-guix@gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi Ludo, ludo@gnu.org (Ludovic Court=C3=A8s) writes: [...] > The =E2=80=98include=E2=80=99 form exists but you would need to use it at= the top > level. OK, got it thanks! > However, I recommend using Guile=E2=80=99s module system instead. An exa= mple of > that can be found here: > > =E2=80=A2 modules: > https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/mod= ules/sysadmin ooooh: maintenance.git is *almost* more interesting than the guix manual itself :-O > =E2=80=A2 config files that use these modules: > https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/ber= lin.scm > https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/bui= ld-machine.scm OK I'm still not able to hack my modules in Guile but that code is clear en= ough for me to understand how it works... and it's great! (\me study!) IaGC [1] is much more... *functional* than other forms of IaC :-) > Here, assuming you=E2=80=99re in the hydra/ directory, you=E2=80=99d simp= ly run, say: > > guix system reconfigure -L ./modules ./berlin.scm got it! kudos! Giovanni [1] Infrastructure as Guile Code =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEERcxjuFJYydVfNLI5030Op87MORIFAlv9hXQACgkQ030Op87M ORKlMQ/9EVT8L4XcfzstCAVuloTJP3HWPQGrWasODdCxX+YUjqSKZba7TAWJWM1p aZ69nIDMsoP+YXy55ogLBviysl9ezwdl2+UzcTNchZpTRcVW7RX/k0NxBy8N83bK s6Co0cMv9k1lWgv0CoDTD/ypd3CKfuZxcj+7PZ81jPf+mF1+9RmmMER5QGNVIQIi ipm6UC59gw/A/rSPFA0JZ74UudoqCwJ+9zpgfNXoZ8drtehQRhW3huPR2S7+OU6V veNUDLHONqvH0iz1Ld/lfHOnAyt7dhs01noHZe05Md9ecPaQFmUQ6i5psIMy1qiv BzFaCPKEddyqvK7uud9w/LbKPFY/ghHtBzG/217cia1PtO7H+avudtWr7/92HdAM FjB+gCqwnTZ8Z5A43a+5CkmPCK+q6qfXR9Lu7YbgheO7++Y6nPS3QZJwc5k5UvqK ImYPKcOBhEDsBp/U9iOt6w9Qv0K+UcjpmLl8+6o2wiT4VcK9avwn//ZrgbvIVMD1 Zf5StjPucIgypk6z97e/X4s4qS8DXNUoXVl45tY5NYillvoQKVE6cDF1mpBaAOE4 +kGLAAPp+EA8AltXgZlUJ3M6JDQJifuAqcMz9KkupIg4HhnqLiB/GKiZ0hLiGP8u Bv7Gnv0Oh1dTt6AsdXRkwHfZkk3R3OSyzeML985sGQCz53KkEag= =bR+K -----END PGP SIGNATURE----- --=-=-=--