aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeng Mei Yu via Guix-patches via <guix-patches@gnu.org>2020-07-23 17:24:13 +0800
committerOleg Pykhalov <go.wigust@gmail.com>2020-07-25 12:27:35 +0300
commitdb65d7447c3adc46e2b24abfc07ae10c6c537df4 (patch)
tree38ea013d3017db6b870d6c5d2b5d91ea00428657
parent1a2902735664c6696f331b079f5e221ea4244fb9 (diff)
downloadguix-db65d7447c3adc46e2b24abfc07ae10c6c537df4.tar
guix-db65d7447c3adc46e2b24abfc07ae10c6c537df4.tar.gz
services: nix: Provide nix commands.
* gnu/services/nix.scm (nix-service-type): Extend profile-service-type to provide nix commands. Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
-rw-r--r--gnu/services/nix.scm5
1 files changed, 4 insertions, 1 deletions
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))))