dotfiles/system/nixos/adguardhome-sync.nix
2023-06-10 20:48:07 +02:00

18 lines
492 B
Nix

{ config, ... }:
{
virtualisation.oci-containers.containers.adguardhome-sync = {
image = "ghcr.io/bakito/adguardhome-sync";
cmd = [ "run" ];
environmentFiles = [ config.age.secrets.adguardhome-sync-environment.path ];
extraOptions = [
"--label=com.centurylinklabs.watchtower.enable=true"
"--label=io.containers.autoupdate=registry"
];
};
networking.firewall.interfaces."podman+" = {
allowedUDPPorts = [ 443 ];
allowedTCPPorts = [ 443 ];
};
}