nix-configs/nixos-modules/docker-proxy.nix

24 lines
515 B
Nix
Raw Normal View History

2024-09-30 20:37:45 -04:00
{
virtualisation = {
containers.enable = true;
podman = {
enable = true;
dockerCompat = true;
};
oci-containers.containers = {
dockerproxy = {
image = "ghcr.io/tecnativa/docker-socket-proxy:latest";
volumes = [ "/var/run/podman/podman.sock:/var/run/docker.sock:ro" ];
environment = {
CONTAINERS = "1";
POST = "0";
};
extraOptions = [
"--pull=newer"
"--network=www"
];
};
};
};
}