all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ricardo Wurmus <rekado@elephly.net>
To: Reza Alizadeh Majd <r.majd@pantherx.org>
Cc: help-guix@gnu.org
Subject: Re: custom service definition files location
Date: Mon, 18 Feb 2019 12:34:15 +0100	[thread overview]
Message-ID: <87ftslwcso.fsf@elephly.net> (raw)
In-Reply-To: <1550478416.1527317.1659989904.570A990B@webmail.messagingengine.com>


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

  reply	other threads:[~2019-02-18 11:37 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 [this message]
2019-02-18 17:52       ` Reza Alizadeh Majd

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=87ftslwcso.fsf@elephly.net \
    --to=rekado@elephly.net \
    --cc=help-guix@gnu.org \
    --cc=r.majd@pantherx.org \
    /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.