From mboxrd@z Thu Jan 1 00:00:00 1970 From: Reza Alizadeh Majd Subject: Re: custom service definition files location Date: Mon, 18 Feb 2019 21:22:22 +0330 Message-ID: <1550512342.1887676.1660245464.26A03B63@webmail.messagingengine.com> References: <1550423366.1181039.1659667480.7571A44C@webmail.messagingengine.com> <7B4A83CE-D70F-495C-9455-21FFDE585609@disroot.org> <1550478416.1527317.1659989904.570A990B@webmail.messagingengine.com> <87ftslwcso.fsf@elephly.net> 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]:59559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gvn5c-0005vP-Ay for help-guix@gnu.org; Mon, 18 Feb 2019 12:52:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gvn5b-0001Ob-L9 for help-guix@gnu.org; Mon, 18 Feb 2019 12:52:24 -0500 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:48479) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gvn5b-0001Ny-64 for help-guix@gnu.org; Mon, 18 Feb 2019 12:52:23 -0500 In-Reply-To: <87ftslwcso.fsf@elephly.net> 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: Ricardo Wurmus Cc: help-guix@gnu.org Thanks, adding service definition path to `GUILE_LOAD_PATH` fixed the issue= .=20 Best,=20 Reza On Mon, Feb 18, 2019, at 3:04 PM, Ricardo Wurmus wrote: >=20 > Reza Alizadeh Majd writes: >=20 > > 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 (= myservice.scm ) in order that I could use them inside my config.scm . for = existing services, their definition files are located in store, in `/gnu/st= ore/.../gnu/service/` path. >=20 > There are two ways to do this: >=20 > 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 = system > configuration. >=20 > 2. Include the file with =E2=80=9C(include "/path/to/file-name")=E2=80=9D= . You can use > a relative file name here. >=20 > -- > Ricardo >=20