2023-03-19 00:10:50 +00:00
|
|
|
{ pkgs, config, ... }:
|
2022-07-30 17:49:04 +00:00
|
|
|
|
|
|
|
{
|
2022-08-04 22:40:11 +00:00
|
|
|
virtualisation = {
|
2023-03-16 19:16:06 +00:00
|
|
|
docker.enable = false;
|
|
|
|
|
|
|
|
podman = {
|
2022-08-04 22:40:11 +00:00
|
|
|
enable = true;
|
2023-03-16 23:08:43 +00:00
|
|
|
|
2023-03-16 19:34:49 +00:00
|
|
|
defaultNetwork.settings.dns_enabled = true;
|
2023-03-16 23:08:43 +00:00
|
|
|
|
2023-03-24 19:16:19 +00:00
|
|
|
dockerSocket.enable = false;
|
|
|
|
dockerCompat = false;
|
2023-03-16 23:08:43 +00:00
|
|
|
|
|
|
|
autoPrune = {
|
|
|
|
enable = true;
|
|
|
|
dates = "weekly";
|
2023-03-17 20:58:31 +00:00
|
|
|
flags = [ "--all" ];
|
2023-03-16 23:08:43 +00:00
|
|
|
};
|
2022-08-04 22:40:11 +00:00
|
|
|
};
|
|
|
|
|
2023-03-16 23:08:43 +00:00
|
|
|
oci-containers = {
|
|
|
|
backend = "podman";
|
|
|
|
};
|
2022-07-30 18:27:33 +00:00
|
|
|
};
|
2023-03-16 20:06:46 +00:00
|
|
|
|
2023-03-16 23:08:43 +00:00
|
|
|
networking.firewall.interfaces."podman+" = {
|
2023-03-19 12:04:48 +00:00
|
|
|
allowedUDPPorts = [ 53 ];
|
|
|
|
allowedTCPPorts = [ 53 ];
|
2023-03-16 23:08:43 +00:00
|
|
|
};
|
2022-07-30 17:49:04 +00:00
|
|
|
}
|