guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Peng Mei Yu
Subject: [bug#42489] [PATCH] services: nix: Provide nix commands.
Date: Sat, 25 Jul 2020 16:31:45 +0800

Hi,

Oleg Pykhalov 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))))
>
> I don't understand what you trying to archive.
>
> Do you want to run `/gnu/store/…nix…/bin/nix-daemon` with flags, like
> ‘--debug’?  It's better to add ‘extra-options’ to ‘<nix-configuration>’
> record and use it in ‘nix-shepherd-service’.

No.  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.

>> @@ -35,7 +35,8 @@
>>    #:use-module (ice-9 match)
>>    #:use-module (ice-9 format)
>>    #:use-module (guix modules)
>> -  #:export (nix-service-type))
>> +  #:export (nix-configuration
>> +            nix-service-type))
>
> OK, but also export ‘nix-configuration?’.

That's fine.  All I want is to be able to customize the
"extra-config".

Thanks.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]