2023-03-13 00:13:25 +00:00
|
|
|
{ pkgs, config, secret, ... }:
|
2022-07-30 17:49:04 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
environment.systemPackages = [
|
|
|
|
pkgs.arion
|
2023-03-16 19:16:06 +00:00
|
|
|
pkgs.docker-client
|
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;
|
|
|
|
# docker = {
|
|
|
|
# enable = true;
|
|
|
|
# autoPrune = {
|
|
|
|
# enable = true;
|
|
|
|
# flags = [ "--all" ];
|
|
|
|
# };
|
|
|
|
# };
|
|
|
|
|
|
|
|
podman = {
|
2022-08-04 22:40:11 +00:00
|
|
|
enable = true;
|
2023-03-16 19:16:06 +00:00
|
|
|
dockerSocket.enable = true;
|
2022-08-04 22:40:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
oci-containers = {
|
|
|
|
backend = "docker";
|
|
|
|
|
2023-03-16 19:16:06 +00:00
|
|
|
# containers.watchtower = {
|
|
|
|
# image = "containrrr/watchtower";
|
|
|
|
# environment = {
|
|
|
|
# WATCHTOWER_POLL_INTERVAL = "21600";
|
|
|
|
# WATCHTOWER_LABEL_ENABLE = "true";
|
|
|
|
# WATCHTOWER_NOTIFICATIONS = "shoutrrr";
|
|
|
|
# WATCHTOWER_NOTIFICATIONS_HOSTNAME = config.networking.hostName;
|
|
|
|
# WATCHTOWER_NOTIFICATION_URL = secret.watchtower.ntfyUrl;
|
|
|
|
# };
|
|
|
|
# volumes = [
|
|
|
|
# "/var/run/docker.sock:/var/run/docker.sock"
|
|
|
|
# "/root/.docker/config.json:/config.json:ro"
|
|
|
|
# ];
|
|
|
|
# extraOptions = [
|
|
|
|
# "--label=com.centurylinklabs.watchtower.enable=true"
|
|
|
|
# ];
|
|
|
|
# };
|
2022-08-04 22:40:11 +00:00
|
|
|
};
|
2022-07-30 18:27:33 +00:00
|
|
|
|
2022-08-04 22:40:11 +00:00
|
|
|
arion = {
|
2023-03-16 19:17:52 +00:00
|
|
|
backend = "podman-socket";
|
2022-08-04 22:40:11 +00:00
|
|
|
};
|
2022-07-30 18:27:33 +00:00
|
|
|
};
|
2023-03-13 09:41:35 +00:00
|
|
|
|
2023-03-16 19:16:06 +00:00
|
|
|
# networking.firewall.interfaces."docker0".allowedTCPPorts = [ 443 ];
|
2022-07-30 17:49:04 +00:00
|
|
|
}
|