89luca89 / distrobox

Use any linux distribution inside your terminal. Enable both backward and forward compatibility with software and freedom to use whatever distribution you’re more comfortable with. Mirror available at: https://gitlab.com/89luca89/distrobox
https://distrobox.it/
GNU General Public License v3.0
10.17k stars 420 forks source link

[Suggestion] Nix/NixOS containers #1604

Open Kezkch opened 2 weeks ago

Kezkch commented 2 weeks ago

Is your feature request related to a problem? Please describe.

Nix and NixOS are entirely different beasts and there are circumstances where it would be beneficial to have NixOS on your system in a containerized format. Nix when installed tends to embed itself into your system in a manner that is difficult to remove and does not leverage the full strength of Nix and it's declarative format. Some services you may want to run under Nix may require a NixOS module to use which can significantly limit how Nix is deployed. I believe that by providing a NixOS container, you can address the shortcomings of using Nix on a non-NixOS Linux distribution while allowing people to more easily leverage Nix through NixOS modules.

Describe the solution you'd like Support for running Nix/NixOS container images.

Describe alternatives you've considered I've attempted to use a Nix/NixOS container image in Docker/Podman software made to make it easier to interface and use containerization, though I've found that no solutions come close to Distrobox.

Additional context Nix isn't supported on RHEL-derivative Distributions that make of SELLinux which significantly limit where it can be deployed, supporting Nix/NixOS containers in Distrobox could help in that respect.