all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Ludovic Courtès" <ludo@gnu.org>
To: Oleg Pykhalov <go.wigust@gmail.com>
Cc: 35648@debbugs.gnu.org
Subject: [bug#35648] [PATCH] services: Add 'nix-service-type'.
Date: Sat, 01 Jun 2019 15:26:13 +0200	[thread overview]
Message-ID: <87woi5e8sq.fsf@gnu.org> (raw)
In-Reply-To: <20190509122951.9119-1-go.wigust@gmail.com> (Oleg Pykhalov's message of "Thu, 9 May 2019 15:29:51 +0300")

Hi Oleg,

Oleg Pykhalov <go.wigust@gmail.com> skribis:

> * gnu/services/nix.scm: New file.
> * gnu/local.mk: Add this.
> * doc/guix.texi (Miscellaneous Services): Document this.

[...]

> +@defvr {Scheme Variable} nix-service-type
> +
> +This is the type of the service that runs @url{https://nixos.org/nix/, Nix}, a
> +daemon that is required to use the Nix package manager.

“… that runs the build daemon of the @url{https://nixos.org/nix, Nix}
package manager.  Here is an example showing how to use it:”

> +@example
> +(use-modules (gnu))
> +(use-service-modules nix)
> +(use-package-modules package-management)
> +
> +(operating-system

Add a line like:

  ;; @dots{}

> +  (packages (append (list nix)
> +                    %base-packages))
> +
> +  (services (append (list (service nix-service-type))
> +                    %base-services)))
> +@end example
> +
> +After @command{guix system reconfigure} you need to configure Nix for your
> +user, e.g.:
> +
> +@example
> +$ nix-channel --add https://nixos.org/channels/nixpkgs-unstable
> +$ nix-channel --update
> +$ ln -s "/nix/var/nix/profiles/per-user/$USER/profile" ~/.nix-profile
> +$ source /run/current-system/profile/etc/profile.d/nix.sh
> +$ nix-env --install hello
> +$ hello
> +@end example

Can we instead simply add a link to upstream documentation for this?  I
would feel more comfortable that way.

Otherwise LGTM, thanks!

Ludo’.

  reply	other threads:[~2019-06-01 13:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-09 12:29 [bug#35648] [PATCH] services: Add 'nix-service-type' Oleg Pykhalov
2019-06-01 13:26 ` Ludovic Courtès [this message]
2019-06-06  7:47   ` Oleg Pykhalov
2019-06-06  9:32     ` Ludovic Courtès
2019-06-10  6:24       ` bug#35648: " Oleg Pykhalov

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=87woi5e8sq.fsf@gnu.org \
    --to=ludo@gnu.org \
    --cc=35648@debbugs.gnu.org \
    --cc=go.wigust@gmail.com \
    /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.