[Top][All Lists]

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

Re: how to split config.scm in multiple files

From: Ludovic Courtès
Subject: Re: how to split config.scm in multiple files
Date: Thu, 22 Nov 2018 14:04:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux)

Hello Giovanni,

Giovanni Biscuolo <address@hidden> skribis:

> please is there a way to include external .scm files in my main
> config.scm, I tried with Guile local inclusion in config.scm
>  (include base-services.scm)
> but I get
> .................
> sudo guix system reconfigure config.scm
> config.scm:8:0: error: extraneous field initializers (include)
> ................

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

However, I recommend using Guile’s module system instead.  An example of
that can be found here:

  • modules:

  • config files that use these modules:

Here, assuming you’re in the hydra/ directory, you’d simply run, say:

  guix system reconfigure -L ./modules ./berlin.scm



reply via email to

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