unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#42489] [PATCH] services: nix: Provide nix commands.
@ 2020-07-23  9:24 Peng Mei Yu via Guix-patches via
  2020-07-24  6:11 ` [bug#42489] [PATCH] services: nix: Export nix-configuration pengmeiyu
  2020-07-24 15:06 ` [bug#42489] [PATCH] services: nix: Provide nix commands Oleg Pykhalov
  0 siblings, 2 replies; 5+ messages in thread
From: Peng Mei Yu via Guix-patches via @ 2020-07-23  9:24 UTC (permalink / raw)
  To: 42489; +Cc: Peng Mei Yu

* gnu/services/nix.scm (nix-service-type): Extend profile-service-type to
provide nix commands.
---
 gnu/services/nix.scm | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gnu/services/nix.scm b/gnu/services/nix.scm
index 75b2df02dc..e73203c2c5 100644
--- a/gnu/services/nix.scm
+++ b/gnu/services/nix.scm
@@ -1,5 +1,6 @@
 ;;; GNU Guix --- Functional package management for GNU
 ;;; Copyright © 2019, 2020 Oleg Pykhalov <go.wigust@gmail.com>
+;;; Copyright © 2020 Peng Mei Yu <i@pengmeiyu.com>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -134,7 +135,9 @@ GID."
    (extensions
     (list (service-extension shepherd-root-service-type nix-shepherd-service)
           (service-extension account-service-type nix-accounts)
-          (service-extension activation-service-type nix-activation)))
+          (service-extension activation-service-type nix-activation)
+          (service-extension profile-service-type
+                             (compose list nix-configuration-package))))
    (description "Run the Nix daemon.")
    (default-value (nix-configuration))))
 
-- 
2.27.0





^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-07-25  9:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-23  9:24 [bug#42489] [PATCH] services: nix: Provide nix commands Peng Mei Yu via Guix-patches via
2020-07-24  6:11 ` [bug#42489] [PATCH] services: nix: Export nix-configuration pengmeiyu
2020-07-24 15:06 ` [bug#42489] [PATCH] services: nix: Provide nix commands Oleg Pykhalov
2020-07-25  8:31   ` Peng Mei Yu
2020-07-25  9:33     ` bug#42489: " Oleg Pykhalov

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).