Skip to content

[Suggestion] Nix/NixOS containers #1604

Description

@slopsec

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions