From: Reza Alizadeh Majd <r.majd@pantherx.org>
To: Ricardo Wurmus <rekado@elephly.net>
Cc: help-guix@gnu.org
Subject: Re: custom service definition files location
Date: Mon, 18 Feb 2019 21:22:22 +0330 [thread overview]
Message-ID: <1550512342.1887676.1660245464.26A03B63@webmail.messagingengine.com> (raw)
In-Reply-To: <87ftslwcso.fsf@elephly.net>
Thanks, adding service definition path to `GUILE_LOAD_PATH` fixed the issue.
Best,
Reza
On Mon, Feb 18, 2019, at 3:04 PM, Ricardo Wurmus wrote:
>
> Reza Alizadeh Majd <r.majd@pantherx.org> 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 ( 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/store/.../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 “use-modules” clause in your operating system
> configuration.
>
> 2. Include the file with “(include "/path/to/file-name")”. You can use
> a relative file name here.
>
> --
> Ricardo
>
prev parent reply other threads:[~2019-02-18 17:52 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-17 17:09 custom service definition files location Reza Alizadeh Majd
2019-02-17 22:52 ` nly
2019-02-18 8:26 ` Reza Alizadeh Majd
2019-02-18 11:34 ` Ricardo Wurmus
2019-02-18 17:52 ` Reza Alizadeh Majd [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1550512342.1887676.1660245464.26A03B63@webmail.messagingengine.com \
--to=r.majd@pantherx.org \
--cc=help-guix@gnu.org \
--cc=rekado@elephly.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.