-
Notifications
You must be signed in to change notification settings - Fork 59
Open
Labels
Description
Problem
The NixOS core container build is currently failing during the Docker image build process with the following error:
error: path '/home/builder/sys-config/hardware-configuration.nix' does not exist
This occurs at step 14/25 of the Dockerfile when running nixos-setup.sh.
Context
From issue #330, user @senpro-ingwersenk reported this issue when testing the updated docker-nixos repository (version 25.05) on Raspberry Pi 5.
The build process attempts to use nix-build '<nixpkgs/nixos>' -A system -I nixos-config=configuration.nix but the configuration references a hardware-configuration.nix file that doesn't exist in the build context.
Steps to Reproduce
- Configure SkiffOS:
export SKIFF_CONFIG=pi/5,core/nixos - Build:
make configure compile - Flash to SD card and boot Raspberry Pi 5
- Observe the build failure in journal logs:
journalctl -D ./skiff/journal
Expected Behavior
The NixOS container should build successfully on first boot, providing a working NixOS environment.
Related Work
- Issue Feedback and questions #330 discussion
- Recent updates to docker-nixos repository: https://github.com/skiffos/docker-nixos
- Updated to NixOS 25.05 with automatic GitHub Actions builds
Potential Solutions
- Generate a minimal hardware-configuration.nix during the build process
- Remove the hardware-configuration.nix import from configuration.nix since this is a containerized environment
- Use the docker-image.nix module approach as suggested in Feedback and questions #330 discussion
Priority
High - This is blocking users from using NixOS core containers on any platform.