© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
BazziteB
Bazzite•4mo ago•
3 replies
superricky

Create nix distrobox

Anyone have any success setting up a nixos distrobox container, or just a distrobox with nix in general? I originally tried to put nix ontop of a container image, but the installer I was using (https://docs.determinate.systems/) keeps trying to configure selinux from inside the container and breaking. So now I was trying to install nixos directly using their docker image (
distrobox create --image nixos/nix:latest --name nix-dev
distrobox create --image nixos/nix:latest --name nix-dev
), but when trying to enter it gives me this error:
superricky@2400-a840-5128-0-56ba-9573-97a7-59cd:~$ distrobox enter nix-dev
 Error: could not start entrypoint.
+ stat /run/host/etc/shadow
++ stat -c %u /run/host/etc/shadow
+ '[' 65534 = 0 ']'
+ '[' -f /run/host/etc/locale.conf ']'
++ grep -e '^LANG=' /run/host/etc/locale.conf
++ sed s/LANG=//
++ sed 's/"//g'
/usr/bin/entrypoint: line 244: sed: command not found
/usr/bin/entrypoint: line 244: sed: command not found
++ sed 's/'\''//g'
/usr/bin/entrypoint: line 244: sed: command not found
+ HOST_LOCALE=
+ '[' 127 -ne 0 ']'
+ printf 'Error: An error occurred\n'
Error: An error occurred
superricky@2400-a840-5128-0-56ba-9573-97a7-59cd:~$ distrobox enter nix-dev
 Error: could not start entrypoint.
+ stat /run/host/etc/shadow
++ stat -c %u /run/host/etc/shadow
+ '[' 65534 = 0 ']'
+ '[' -f /run/host/etc/locale.conf ']'
++ grep -e '^LANG=' /run/host/etc/locale.conf
++ sed s/LANG=//
++ sed 's/"//g'
/usr/bin/entrypoint: line 244: sed: command not found
/usr/bin/entrypoint: line 244: sed: command not found
++ sed 's/'\''//g'
/usr/bin/entrypoint: line 244: sed: command not found
+ HOST_LOCALE=
+ '[' 127 -ne 0 ']'
+ printf 'Error: An error occurred\n'
Error: An error occurred


My goal is to use Nix for development, so if you have a better way of doing that please let me know.
Determinate documentation
An end-to-end toolchain for using Nix courtesy of Determinate Systems
BazziteJoin
The operating system for the next generation of gamers.
29,482Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

distrobox broke (cannot start `/nix`)
BazziteBBazzite / 🛟bazzite-help
10mo ago
Cannot create Debian (ARM) distrobox
BazziteBBazzite / 🛟bazzite-help
4mo ago
Distrobox slowness
BazziteBBazzite / 🛟bazzite-help
4mo ago
teamviewer (distrobox)
BazziteBBazzite / 🛟bazzite-help
16mo ago