[Nix-dev] nix on ubuntu/debian. replace core packages.

zimbatm zimbatm at zimbatm.com
Fri Feb 3 17:53:28 CET 2017


Even with hibernation it's not really possible to boot into another OS that
quickly. If you want both systems running side by side it's probably easier
to use a VM.

On Fri, 3 Feb 2017 at 15:50 Peter Holm <peter.g.holm at gmail.com> wrote:

> I was accidently posting this directly to zimbatm. I reposting it to the
> list.
>
> 2017-02-03 1:42 GMT+01:00, Peter Holm <peter.g.holm at gmail.com>:
> > I was more thinking about something like this
> > https://github.com/NixOS/nixpkgs/issues/3111
> > But with custom kernel for each dist, some way to save the running
> > process and reload them  within a ureadhead-reboot (fake stay at the
> > same system).
> >
> > The computer should flicker a bit -  kick you out from the current
> > x-session and then be able to restore the state of the sesssion with a
> > login prompt from the  dm.
> >
> > One had to write a custom hibernate-handler for that.
> >
> > Is that impossible, or just "hard" to get done.?
> >
> > 2016-12-30 12:48 GMT+01:00, zimbatm <zimbatm at zimbatm.com>:
> >> 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 at 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 at lists.science.uu.nl
> >>> http://lists.science.uu.nl/mailman/listinfo/nix-dev
> >>>
> >>
> >
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.science.uu.nl/pipermail/nix-dev/attachments/20170203/abf9ac93/attachment-0001.html>


More information about the nix-dev mailing list