Files
CI-Images/images/nixos/Dockerfile
T
SubQ 8ad0c484aa
Build CI images / build (linux-native) (push) Successful in 11s
Build CI images / build (nixos) (push) Successful in 1m4s
Build CI images / build (vulkan) (push) Successful in 17s
Build CI images / build (windows-clang) (push) Successful in 1m44s
Build CI images / build (windows-gcc) (push) Successful in 24s
Add Node.js to the runner images
2026-12-06 07:46:44 +03:00

30 lines
1023 B
Docker

# Nix-enabled runner image for the Void research projects.
#
# Starts from the official NixOS Nix image and enables flakes and the
# nix-command, so a workflow can run the repository's own shell:
#
# nix-shell shell.nix --run 'bash ci/linux.sh'
# nix develop
#
# Nothing project-specific is baked in: each project pins its own nixpkgs
# (Void/Engine's shell.nix does), so this image stays small and current.
FROM nixos/nix:latest
LABEL org.opencontainers.image.title="Void CI Nix" \
org.opencontainers.image.description="Nix with flakes enabled for the Void projects' nix-shell/nix develop environments" \
org.opencontainers.image.source="https://git.faumaray.com/Void/CI-Images"
RUN printf '%s\n' \
'experimental-features = nix-command flakes' \
'trusted-users = root' \
>>/etc/nix/nix.conf \
&& git config --global --add safe.directory '*'
RUN nix profile install nixpkgs#nodejs
ENV NIX_CONFIG="experimental-features = nix-command flakes"
WORKDIR /workspace
CMD ["bash"]