2023-04-30 00:12:25 +03:00
|
|
|
{ pkgs, ... }:
|
2023-03-09 14:15:44 +03:00
|
|
|
|
|
|
|
{
|
|
|
|
# Enable docker
|
|
|
|
virtualisation.docker = {
|
|
|
|
enable = true;
|
|
|
|
liveRestore = false;
|
2023-04-30 00:12:25 +03:00
|
|
|
package = pkgs.unstable.docker;
|
2023-03-09 14:15:44 +03:00
|
|
|
};
|
|
|
|
# Source: https://forums.docker.com/t/error-response-from-daemon-rpc-error-code-unavailable-desc-grpc-the-connection-is-unavailable/39066/12
|
|
|
|
networking.firewall = {
|
|
|
|
allowedTCPPorts = [ 2376 2377 7946 ];
|
|
|
|
allowedUDPPorts = [ 7946 4789 ];
|
2023-03-11 09:07:24 +03:00
|
|
|
trustedInterfaces = [ "docker0" "docker_gwbridge" ];
|
2023-03-09 14:15:44 +03:00
|
|
|
};
|
|
|
|
}
|