34 lines
855 B
Nix
34 lines
855 B
Nix
{ config, lib, ... }:
|
|
let
|
|
cfg = config.services.az-rss-bridge;
|
|
whitelist = builtins.toFile "whitelist.txt" ''*'';
|
|
in
|
|
{
|
|
options = {
|
|
services.az-rss-bridge.enable = lib.mkEnableOption "Enable RSS bridge.";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.az-docker.enable = true;
|
|
|
|
virtualisation.oci-containers = {
|
|
backend = "docker";
|
|
containers."rss-bridge" = {
|
|
# https://hub.docker.com/r/rssbridge/rss-bridge/tags
|
|
image = "rssbridge/rss-bridge@sha256:0d266b3c5908645e4a07ee8131bdb3d1d11adf77cbb966dd462b2913cdda716f";
|
|
autoStart = true;
|
|
ports = [
|
|
"8082:80"
|
|
];
|
|
volumes = [
|
|
"${whitelist}:/app/whitelist.txt"
|
|
"/etc/localtime:/etc/localtime:ro"
|
|
];
|
|
extraOptions = [
|
|
"--log-opt=tag='rss-brige'"
|
|
];
|
|
};
|
|
};
|
|
};
|
|
}
|