[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#35648] [PATCH] services: Add 'nix-service-type'.
From: |
Ludovic Courtès |
Subject: |
[bug#35648] [PATCH] services: Add 'nix-service-type'. |
Date: |
Sat, 01 Jun 2019 15:26:13 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hi Oleg,
Oleg Pykhalov <address@hidden> skribis:
> * gnu/services/nix.scm: New file.
> * gnu/local.mk: Add this.
> * doc/guix.texi (Miscellaneous Services): Document this.
[...]
> address@hidden {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:”
> address@hidden
> +(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)))
> address@hidden example
> +
> +After @command{guix system reconfigure} you need to configure Nix for your
> +user, e.g.:
> +
> address@hidden
> +$ 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
> address@hidden example
Can we instead simply add a link to upstream documentation for this? I
would feel more comfortable that way.
Otherwise LGTM, thanks!
Ludo’.
- [bug#35648] [PATCH] services: Add 'nix-service-type'.,
Ludovic Courtès <=