Subject: bug#42489: closed (Re: [bug#42489] [PATCH] services: nix: Provide nix commands.)

From: [email-masked] (GNU bug Tracking System)
Date: Sat, 25 Jul 2020 09:34:02 +0000

Your bug report

#42489: [PATCH] services: nix: Provide nix commands.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
42489: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=42489
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#42489] [PATCH] services: nix: Provide nix commands.
From: Oleg Pykhalov <[email-masked]>
To: Peng Mei Yu <[email-masked]>
Cc: [email-masked]
Date: Sat, 25 Jul 2020 12:33:19 +0300
List-Id: <debbugs-submit.debbugs.gnu.org>

Peng Mei Yu <[email-masked]> writes:

>> @@ -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))))
>
> The nix-service is useless without commands like nix, nix-env,
> nix-shell, etc.  I think it's a standard that a guix service should
> provide necessary commands in order to use that service.

Ah, good catch!  Pushed your changes to master.

Thanks again,
Oleg.

Subject: [PATCH] services: nix: Provide nix commands.
From: Peng Mei Yu <[email-masked]>
To: [email-masked]
Cc: Peng Mei Yu <[email-masked]>
Date: Thu, 23 Jul 2020 17:24:13 +0800
List-Id: <debbugs-submit.debbugs.gnu.org>

* 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 <[email-masked]>
+;;; Copyright © 2020 Peng Mei Yu <[email-masked]>
 ;;;
 ;;; 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