coder-templates/image.nix

28 lines
457 B
Nix
Raw Normal View History

2024-04-24 17:09:10 +02:00
{
lib,
pkgs,
...
}:
pkgs.dockerTools.buildImage {
name = "nix-coder";
tag = "latest";
copyToRoot = pkgs.buildEnv {
name = "image-root";
paths = [
pkgs.bashInteractive
pkgs.nixFlakes
pkgs.coreutils-full
2024-04-25 00:42:29 +02:00
pkgs.curl
pkgs.home-manager
pkgs.direnv
];
2024-04-24 17:09:10 +02:00
pathsToLink = ["/bin"];
};
2024-04-26 20:45:24 +02:00
config = {
Cmd = ["/bin/bash"];
Env = ["SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt"];
};
2024-04-24 17:09:10 +02:00
}