Re: [Nix-dev] nix on ubuntu/debian. replace core packages.
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 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 : > > 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 : > >> 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 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 > >>> > >> > > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nix on ubuntu/debian. replace core packages.
I was accidently posting this directly to zimbatm. I reposting it to the list. 2017-02-03 1:42 GMT+01:00, Peter Holm : > 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 : >> 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 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 >>> >> > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] nix on ubuntu/debian. replace core packages.
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 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 > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] nix on ubuntu/debian. replace core packages.
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