1

Modules/Docker: Add option to use docker buildkit

This commit is contained in:
2025-07-11 16:11:41 +02:00
parent d0875af106
commit 0193e6340d
2 changed files with 2 additions and 1 deletions

View File

@ -10,7 +10,7 @@ in {
config = lib.mkIf docker.enable { config = lib.mkIf docker.enable {
environment.variables = lib.mkMerge [ environment.variables = lib.mkMerge [
(lib.mkIf (!docker.podman) { (lib.mkIf ((!docker.podman) && docker.buildkit) {
DOCKER_BUILDKIT = 1; DOCKER_BUILDKIT = 1;
}) })
]; ];

View File

@ -7,6 +7,7 @@
podman = lib.mkEnableOption "Use podman instead of docker"; podman = lib.mkEnableOption "Use podman instead of docker";
docker.rootless = lib.mkEnableOption "Use rootless docker (no effect if podman is used)"; docker.rootless = lib.mkEnableOption "Use rootless docker (no effect if podman is used)";
docker.buildkit = lib.mkEnableOption "Use Docker BuildKit (no effect if podman is used)";
networks = lib.mkOption { networks = lib.mkOption {
type = lib.types.listOf (lib.types.submodule ({ type = lib.types.listOf (lib.types.submodule ({