[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nix-dev
Subject:    Re: [Nix-dev] nix on ubuntu/debian. replace core packages.
From:       zimbatm <zimbatm () zimbatm ! com>
Date:       2016-12-30 11:48:54
Message-ID: CANEP-f7WRDLPCk0bqG6Q3ELB6JaH1snHcVrFF-=ozU3_0c_uQQ () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hi Peter,

When nix is installed on another distro what you get is a
`~/.nix-profile/bin` installed in your PATH before the usual /usr/bin,/bin
and so on.  So if you install userland tools they will "replace" the
system-provided ones just because the path lookup will find them first. So
in that sense you get a unified userland between distros if you install the
same nix packages. Does that answer your question? Note that this only
works for userspace program and not system services.

On Tue, 27 Dec 2016 at 06:15 Peter Holm <peter.g.holm@gmail.com> wrote:

> My question is regarding  Nix multiuser-install.
> Is it possible to replace the base-system with packages from nix.?
> Or even better - boot to base-system from nix core, and keep desired
> tools from the previous userland.?
>
> My idea is simple - if its can be done. Then probably  one vould
> ectand it to on-the-fly switch userland between distros and keep whats
> installed from nix. Ok, you have to rebind or replace some
> config-files... But , i belive  that should not be impossible to get
> going.?
>
> /Peter
> _______________________________________________
> nix-dev mailing list
> nix-dev@lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>

[Attachment #5 (text/html)]

<div dir="ltr">Hi Peter,<div><br></div><div>When nix is installed on another distro \
what you get is a `~/.nix-profile/bin` installed in your PATH before the usual \
/usr/bin,/bin and so on.   So if you install userland tools they will \
&quot;replace&quot; the system-provided ones just because the path lookup will find \
them first. So in that sense you get a unified userland between distros if you \
install the same nix packages. Does that answer your question? Note that this only \
works for userspace program and not system services.</div></div><br><div \
class="gmail_quote"><div dir="ltr">On Tue, 27 Dec 2016 at 06:15 Peter Holm &lt;<a \
href="mailto:peter.g.holm@gmail.com">peter.g.holm@gmail.com</a>&gt; \
wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 \
.8ex;border-left:1px #ccc solid;padding-left:1ex">My question is regarding   Nix \
multiuser-install.<br class="gmail_msg"> Is it possible to replace the base-system \
with packages from nix.?<br class="gmail_msg"> Or even better - boot to base-system \
from nix core, and keep desired<br class="gmail_msg"> tools from the previous \
userland.?<br class="gmail_msg"> <br class="gmail_msg">
My idea is simple - if its can be done. Then probably   one vould<br \
class="gmail_msg"> ectand it to on-the-fly switch userland between distros and keep \
whats<br class="gmail_msg"> installed from nix. Ok, you have to rebind or replace \
some<br class="gmail_msg"> config-files... But , i belive   that should not be \
impossible to get<br class="gmail_msg"> going.?<br class="gmail_msg">
<br class="gmail_msg">
/Peter<br class="gmail_msg">
_______________________________________________<br class="gmail_msg">
nix-dev mailing list<br class="gmail_msg">
<a href="mailto:nix-dev@lists.science.uu.nl" class="gmail_msg" \
target="_blank">nix-dev@lists.science.uu.nl</a><br class="gmail_msg"> <a \
href="http://lists.science.uu.nl/mailman/listinfo/nix-dev" rel="noreferrer" \
class="gmail_msg" target="_blank">http://lists.science.uu.nl/mailman/listinfo/nix-dev</a><br \
class="gmail_msg"> </blockquote></div>



_______________________________________________
nix-dev mailing list
nix-dev@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic