help-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how to split config.scm in multiple files


From: Giovanni Biscuolo
Subject: Re: how to split config.scm in multiple files
Date: Tue, 27 Nov 2018 18:57:08 +0100

Hi Ludo,

address@hidden (Ludovic Courtès) writes:

[...]

> The ‘include’ form exists but you would need to use it at the top
> level.

OK, got it thanks!

> However, I recommend using Guile’s module system instead.  An example of
> that can be found here:
>
>   • modules:
>     
> https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/modules/sysadmin

ooooh: maintenance.git is *almost* more interesting than the guix manual
itself :-O

>   • config files that use these modules:
>     
> https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/berlin.scm
>     
> https://git.savannah.gnu.org/cgit/guix/maintenance.git/tree/hydra/build-machine.scm

OK I'm still not able to hack my modules in Guile but that code is clear enough
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’re in the hydra/ directory, you’d simply run, say:
>
>   guix system reconfigure -L ./modules ./berlin.scm

got it!

kudos!
Giovanni

[1] Infrastructure as Guile Code

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]