add CI images to repo
Some checks failed
/ check (push) Successful in 3m19s
build / build (nvim) (push) Has been cancelled

This commit is contained in:
iofq 2026-02-28 00:01:58 -06:00
parent abce966b76
commit bea053126b
7 changed files with 78 additions and 1 deletions

View file

@ -0,0 +1,38 @@
{ pkgs, ... }:
pkgs.dockerTools.buildLayeredImage {
name = "nix-with-node";
contents = with pkgs; [
./root
bashInteractive
cacert
coreutils
git
gnutar
gzip
jq
nix
nodejs
openssh
shadow
xz
];
config = {
Cmd = [ "/bin/bash" ];
WorkingDir = "/home/nixbld";
Env = [
"ENV=/etc/profile.d/nix.sh"
"NIX_BUILD_SHELL=/bin/bash"
"PATH=/usr/bin:/bin"
"SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"
"USER=root"
];
};
fakeRootCommands = ''
${pkgs.dockerTools.shadowSetup}
groupadd -r nixbld
useradd -r -g nixbld nixbld
'';
enableFakechroot = true;
}