all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joshua Branson <jbranso@fastmail.com>
To: help-guix@gnu.org
Subject: Re: Features of installing package that works as service
Date: Tue, 27 Nov 2018 09:25:51 -0500	[thread overview]
Message-ID: <87a7luwqa8.fsf@fastmail.com> (raw)
In-Reply-To: <LSJX9mI--3-1@tutanota.com> (znavko's message of "Tue, 27 Nov 2018 10:38:22 +0100 (CET)")

<znavko@tutanota.com> writes:

> Hello, Guix Help! I think GuixSD is cute, but manual is so incomprehensible https://www.gnu.org/software/guix/manual/en/guix.html 

Have you read the entire manual?  I know I haven't.  Before your
complain that the manual is difficult to understand, be sure that you
read all of it.  There's lots of good details in the manual. :)

>
> I want to clear all possible options when I install packages that work as services.
> For example, can get postgresql by typing by non-root user `$ guix package -i postgresql` and run it? How to run it?

If you intend to run it yourself, you can run that command.  But you
don't want to actually run guix package -i postgresql.

>
> Can I install postgresql and run it only when I need?
>
> Do I need install it only from defining service in config.scm and typing `# guix system reconfigure config.scm` ?

Basically yes.

https://www.gnu.org/software/guix/manual/en/guix.html#Database-Services

The (gnu services databases) module provides the following services. 

So your config would look a little like:

(use-modules (gnu services database))

...

;; your postgresql service definition here.
;; I think the below is correct, but I'm not certain.

(services (cons* 
(service postgresql-service-type)
%base-services
))

>
> Manual "6.2.15 Defining Services" has lot of variables and I do not know where to find them definitions.

  reply	other threads:[~2018-11-27 14:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-27  9:38 Features of installing package that works as service znavko
2018-11-27 14:25 ` Joshua Branson [this message]
2018-11-28  6:31   ` znavko
     [not found]   ` <<87a7luwqa8.fsf@fastmail.com>
     [not found]     ` <LSO-zSI--3-1@tutanota.com-LSO2Gyh----1>
2018-11-28  7:05       ` znavko
2018-11-29 12:08         ` Joshua Branson
2018-11-27 17:04 ` Tonton

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=87a7luwqa8.fsf@fastmail.com \
    --to=jbranso@fastmail.com \
    --cc=help-guix@gnu.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.