unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Compatibility between Nix and Guix
@ 2019-09-26  2:13 Daniel Schäfer
  2019-09-26 12:19 ` Pjotr Prins
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Schäfer @ 2019-09-26  2:13 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 1661 bytes --]

Hi all,

I've been using NixOS for a few years and now I want to try out Guix.
The goal is to see whether there is a benefit to using both and what we can learn from each other.

Last year Ludo wrote:
> > Is compatibility with the nix-daemon a goal of the Guix project?
> 
> I’ve come to the conclusion that it’s not a worthy goal, as in, it would
> cost more than it’s worth.  guix-daemon is already incompatible with
> nix-daemon on a few things, such as the “builtin:download” derivation
> builder.

But the Guix manual at 2.2 [1] says:
> When a working installation of the Nix package manager is available, you can
> instead configure Guix with --disable-daemon. In that case, Nix replaces the
> three dependencies above.
> 
> Guix is compatible with Nix, so it is possible to share the same store between
> both. To do so, you must pass configure not only the same --with-store-dir
> value, but also the same --localstatedir value. The latter is essential because
> it specifies where the database that stores metadata about the store is
> located, among other things. The default values for Nix are
> --with-store-dir=/nix/store and --localstatedir=/nix/var. Note that
> --disable-daemon is not required if your goal is to share the store with Nix. 

How much of that is still true? The daemon is not compatible anymore and
I don't think it is a good idea to have two different daemons share the same store.

Is there still the a possibility to use either Nix on GuixSD or Guix on NixOS
without duplicating the store or running two daemons?
Or e.g. use Nix with Guile?

Cheers,
Daniel

[1] https://guix.gnu.org/manual/en/guix.html#Requirements


[-- Attachment #2: Type: text/html, Size: 1954 bytes --]

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

* Re: Compatibility between Nix and Guix
  2019-09-26  2:13 Compatibility between Nix and Guix Daniel Schäfer
@ 2019-09-26 12:19 ` Pjotr Prins
  2019-09-27 13:25   ` Tobias Geerinckx-Rice via Development of GNU Guix and the GNU System distribution.
  0 siblings, 1 reply; 6+ messages in thread
From: Pjotr Prins @ 2019-09-26 12:19 UTC (permalink / raw)
  To: Daniel Schäfer; +Cc: guix-devel

Hi Daniel,

Nix and Guix are quite different even though they share the same root.
I used Nix for 10-odd years until I discovered GNU Guix.

On Thu, Sep 26, 2019 at 04:13:05AM +0200, Daniel Schäfer wrote:
> How much of that is still true? The daemon is not compatible anymore and
> I don't think it is a good idea to have two different daemons share the same sto
> re.

Correct. There are two databases and the hashes are different anyway.
No gain and plenty of potential pain.

> Is there still the a possibility to use either Nix on GuixSD or Guix on NixOS
> without duplicating the store or running two daemons?
> Or e.g. use Nix with Guile?

It is safe to use two stores and two daemons. Virtue of isolation :)

Pj.

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

* Re: Compatibility between Nix and Guix
  2019-09-26 12:19 ` Pjotr Prins
@ 2019-09-27 13:25   ` Tobias Geerinckx-Rice via Development of GNU Guix and the GNU System distribution.
  2019-09-27 20:00     ` Ricardo Wurmus
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Geerinckx-Rice via Development of GNU Guix and the GNU System distribution. @ 2019-09-27 13:25 UTC (permalink / raw)
  To: guix-devel; +Cc: Daniel Schäfer

[-- Attachment #1: Type: text/plain, Size: 1161 bytes --]

Pjotr Prins 写道:
> It is safe[r?] to use two stores and two daemons. Virtue of 
> isolation :)

I agree.  There is no advantage to sharing the store that I can 
imagine is worth the risk and burden of compiling your entire Guix 
or Nix world from scratch because you can't use substitutes.

The Guix manual says:
> Guix is compatible with Nix, so it is possible to share the same 
> store between
> both. To do so, you must pass configure not only the same 
> --with-store-dir
> value, but also the same --localstatedir value. The latter is 
> essential because
> it specifies where the database that stores metadata about the 
> store is
> located, among other things. The default values for Nix are
> --with-store-dir=/nix/store and --localstatedir=/nix/var. Note 
> that
> --disable-daemon is not required if your goal is to share the 
> store with Nix.

Unless somebody objects, I'd like to (wait for it) nix this from 
the manual entirely.

It may or may not be true still, and even if it is, it's nothing 
more than a random Fun Fact that doesn't warrant encouragement in 
official documentation.

Going once,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compatibility between Nix and Guix
  2019-09-27 13:25   ` Tobias Geerinckx-Rice via Development of GNU Guix and the GNU System distribution.
@ 2019-09-27 20:00     ` Ricardo Wurmus
  2019-09-28 15:38       ` Tobias Geerinckx-Rice
  0 siblings, 1 reply; 6+ messages in thread
From: Ricardo Wurmus @ 2019-09-27 20:00 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: guix-devel, Daniel Schäfer


Tobias Geerinckx-Rice via Development of GNU Guix and the GNU System distribution. <guix-devel@gnu.org> writes:

> The Guix manual says:
>> Guix is compatible with Nix, so it is possible to share the same
>> store between
>> both. To do so, you must pass configure not only the same
>> --with-store-dir
>> value, but also the same --localstatedir value. The latter is
>> essential because
>> it specifies where the database that stores metadata about the store
>> is
>> located, among other things. The default values for Nix are
>> --with-store-dir=/nix/store and --localstatedir=/nix/var. Note that
>> --disable-daemon is not required if your goal is to share the store
>> with Nix.
>
> Unless somebody objects, I'd like to (wait for it) nix this from the
> manual entirely.

I don’t object to removing it.  In fact, I’d be happy to see it vanish.

--
Ricardo

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

* Re: Compatibility between Nix and Guix
  2019-09-27 20:00     ` Ricardo Wurmus
@ 2019-09-28 15:38       ` Tobias Geerinckx-Rice
  2019-09-28 21:15         ` Ludovic Courtès
  0 siblings, 1 reply; 6+ messages in thread
From: Tobias Geerinckx-Rice @ 2019-09-28 15:38 UTC (permalink / raw)
  To: Ricardo Wurmus; +Cc: guix-devel, Daniel Schäfer

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

Ricardo Wurmus 写道:
> Tobias Geerinckx-Rice writes:
>> The Guix manual says:
>>> Guix is compatible with Nix, so it is possible to share […]
>>
>> Unless somebody objects, I'd like to (wait for it) nix this 
>> from the
>> manual entirely.
>
> I don’t object to removing it.  In fact, I’d be happy to see it 
> vanish.

Gone in 348d8e446fbc8f5c9a51a081047de72d735a2a8a.

Kind regards,

T G-R

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

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

* Re: Compatibility between Nix and Guix
  2019-09-28 15:38       ` Tobias Geerinckx-Rice
@ 2019-09-28 21:15         ` Ludovic Courtès
  0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2019-09-28 21:15 UTC (permalink / raw)
  To: Tobias Geerinckx-Rice; +Cc: guix-devel, Daniel Schäfer

Tobias Geerinckx-Rice <me@tobias.gr> skribis:

> Ricardo Wurmus 写道:
>> Tobias Geerinckx-Rice writes:
>>> The Guix manual says:
>>>> Guix is compatible with Nix, so it is possible to share […]
>>>
>>> Unless somebody objects, I'd like to (wait for it) nix this from
>>> the
>>> manual entirely.
>>
>> I don’t object to removing it.  In fact, I’d be happy to see it
>> vanish.
>
> Gone in 348d8e446fbc8f5c9a51a081047de72d735a2a8a.

Thanks!  I think that paragraph had been incorrect for some time indeed.

Ludo’.

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

end of thread, other threads:[~2019-09-28 21:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-09-26  2:13 Compatibility between Nix and Guix Daniel Schäfer
2019-09-26 12:19 ` Pjotr Prins
2019-09-27 13:25   ` Tobias Geerinckx-Rice via Development of GNU Guix and the GNU System distribution.
2019-09-27 20:00     ` Ricardo Wurmus
2019-09-28 15:38       ` Tobias Geerinckx-Rice
2019-09-28 21:15         ` Ludovic Courtès

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