From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: Re: custom service definition files location Date: Mon, 18 Feb 2019 12:34:15 +0100 Message-ID: <87ftslwcso.fsf@elephly.net> References: <1550423366.1181039.1659667480.7571A44C@webmail.messagingengine.com> <7B4A83CE-D70F-495C-9455-21FFDE585609@disroot.org> <1550478416.1527317.1659989904.570A990B@webmail.messagingengine.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([209.51.188.92]:56139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvhEJ-0006Y2-Kx for help-guix@gnu.org; Mon, 18 Feb 2019 06:37:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvhCF-0002NT-Iv for help-guix@gnu.org; Mon, 18 Feb 2019 06:34:53 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21062) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvhCB-0002LR-Oh for help-guix@gnu.org; Mon, 18 Feb 2019 06:34:49 -0500 In-reply-to: <1550478416.1527317.1659989904.570A990B@webmail.messagingengine.com> 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: Reza Alizadeh Majd Cc: help-guix@gnu.org Reza Alizadeh Majd writes: > Thanks for your response. > sure I will pass my system config file as an argument to guix: > > $ guix system reconfigure /etc/confg.scm > > but my question is about to detect my custom service definition files ( m= yservice.scm ) in order that I could use them inside my config.scm . for ex= isting services, their definition files are located in store, in `/gnu/stor= e/.../gnu/service/` path. There are two ways to do this: 1. place your service definitions in a Guile module and put the directory containing the module files onto GUILE_LOAD_PATH. Refer to the module with a =E2=80=9Cuse-modules=E2=80=9D clause in your operating sy= stem configuration. 2. Include the file with =E2=80=9C(include "/path/to/file-name")=E2=80=9D. = You can use a relative file name here. -- Ricardo