2024-05-03 23:11:30 +05:00
|
|
|
{
|
2024-07-08 15:07:24 +05:00
|
|
|
pkgs,
|
|
|
|
lib,
|
2024-07-18 15:49:05 +05:00
|
|
|
bonPkgs,
|
2024-07-08 15:07:24 +05:00
|
|
|
extraPaths ? [],
|
|
|
|
...
|
2024-05-03 23:11:30 +05:00
|
|
|
}:
|
|
|
|
pkgs.dockerTools.buildImage {
|
2024-07-08 15:07:24 +05:00
|
|
|
name = "nix-runner";
|
|
|
|
tag = "latest";
|
2024-07-18 15:49:05 +05:00
|
|
|
fromImage = bonPkgs.nix-minimal;
|
2024-05-03 23:11:30 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
copyToRoot = pkgs.buildEnv {
|
|
|
|
name = "image-root";
|
|
|
|
pathsToLink = ["/bin"];
|
|
|
|
paths = with pkgs;
|
|
|
|
[
|
|
|
|
nodejs
|
|
|
|
jq
|
|
|
|
cachix
|
|
|
|
]
|
|
|
|
++ extraPaths;
|
|
|
|
};
|
2024-05-03 23:11:30 +05:00
|
|
|
|
2024-07-08 15:07:24 +05:00
|
|
|
config.Cmd = ["/bin/bash"];
|
|
|
|
}
|
|
|
|
// {
|
|
|
|
meta =
|
2024-07-18 15:49:05 +05:00
|
|
|
bonPkgs.nix-minimal.meta
|
2024-07-08 15:07:24 +05:00
|
|
|
// {
|
|
|
|
description = "Image for action runners with a Nix package manager";
|
|
|
|
longDescription = ''
|
|
|
|
Docker image for action runners with Nix package manager (https://nixos.org/).
|
|
|
|
Enabled features: nix-command, flakes.
|
|
|
|
Versions: latest
|
|
|
|
'';
|
2024-05-03 23:11:30 +05:00
|
|
|
};
|
|
|
|
}
|