Enable BuildKit by default in docker

This commit is contained in:
Erwin Boskma 2023-03-10 12:57:46 +01:00
parent e7945e9493
commit 84db80d868
Signed by: erwin
SSH key fingerprint: SHA256:Vw4O4qA0i5x65Y7yyjDpWDCSMSXAhqT4X7cJ3frdnLY

View file

@ -8,9 +8,9 @@ with lib; let
in in
{ {
options.eboskma.docker = { options.eboskma.docker = {
enable = mkEnableOption "podman"; enable = mkEnableOption "docker";
enableNvidia = mkEnableOption "podman NVidia support"; enableNvidia = mkEnableOption "docker NVidia support";
enableTcpSocket = mkEnableOption "podman TCP socket"; # enableTcpSocket = mkEnableOption "docker TCP socket";
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
@ -27,6 +27,9 @@ in
daemon.settings = { daemon.settings = {
insecure-registries = config.virtualisation.containers.registries.insecure; insecure-registries = config.virtualisation.containers.registries.insecure;
features = {
buildkit = true;
};
}; };
}; };