Files
ci-images/img/builder.nix
T

57 lines
934 B
Nix
Raw Normal View History

2025-11-25 22:42:47 -06:00
{
2025-12-29 19:47:30 -06:00
buildah,
fakeNss,
2025-11-25 22:42:47 -06:00
git,
2026-01-22 23:52:55 -06:00
lib',
2025-11-25 22:42:47 -06:00
nix,
nix-output-monitor,
2026-01-23 00:13:46 -06:00
nodejs_24,
2025-11-25 22:42:47 -06:00
podman,
2026-01-22 23:52:55 -06:00
writeTextFile,
2025-11-25 22:42:47 -06:00
name,
...
}:
let
policy = (
2026-01-22 23:52:55 -06:00
writeTextFile {
2025-11-25 22:42:47 -06:00
name = "policy.json";
text = ''
{
"default": [{"type": "insecureAcceptAnything"}]
}
'';
destination = "/etc/containers/policy.json";
}
);
2026-01-23 18:01:35 -06:00
nix-conf = writeTextFile {
name = "nix.conf";
text = ''
extra-experimental-features = nix-command flakes
'';
destination = "/etc/nix/nix.conf";
};
2025-11-25 22:42:47 -06:00
in
2026-01-23 17:48:04 -06:00
lib'.mkImage {
2025-11-25 22:42:47 -06:00
name = name "builder";
2026-01-23 17:54:24 -06:00
contents = lib'.basePackages ++ [
2026-01-23 17:48:04 -06:00
buildah
(fakeNss.override {
extraPasswdLines = [
"nixbld:x:1001:1001:Build user:/home/nixbld:/noshell"
];
extraGroupLines = [
"nixbld:!:1001:nixbld"
];
})
2026-01-23 17:48:04 -06:00
git
nix
2026-01-23 18:01:35 -06:00
nix-conf
2026-01-23 17:48:04 -06:00
nix-output-monitor
nodejs_24
podman
policy
2026-01-22 23:52:55 -06:00
];
2026-01-23 17:48:04 -06:00
includeNixDB = true;
2026-01-22 23:52:55 -06:00
}