1
0
Fork 0
dotfiles/system/nixos/arion.nix

55 lines
1.2 KiB
Nix

{ pkgs, config, secret, ... }:
{
environment.systemPackages = [
pkgs.arion
];
virtualisation = {
docker.enable = false;
podman = {
enable = true;
defaultNetwork.settings.dns_enabled = true;
dockerSocket.enable = true;
dockerCompat = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
oci-containers = {
backend = "podman";
containers.watchtower = {
image = "ghcr.io/containrrr/watchtower:latest";
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"
];
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
];
};
};
arion = {
backend = "podman-socket";
};
};
networking.firewall.interfaces."podman+" = {
allowedUDPPorts = [ 53 443 ];
allowedTCPPorts = [ 53 443 ];
};
}