nixos/modules/rss-bridge/default.nix

25 lines
593 B
Nix
Raw Normal View History

2022-11-03 23:32:45 +01:00
{ ... }:
2022-11-02 11:30:13 +01:00
let
whitelist = builtins.toFile "whitelist.txt" ''*'';
in
{
virtualisation.oci-containers = {
backend = "docker";
2022-12-27 15:07:43 +01:00
containers."rss-bridge" = {
2023-02-27 11:50:59 +01:00
# https://hub.docker.com/r/rssbridge/rss-bridge/tags
2023-05-22 15:12:30 +02:00
image = "rssbridge/rss-bridge@sha256:7b8be6079488926287d7ba4043d24b679218ccb7bf87b4e47ff0571ec500c345";
2022-11-02 11:30:13 +01:00
autoStart = true;
ports = [
"8082:80"
];
volumes = [
"${whitelist}:/app/whitelist.txt"
"/etc/localtime:/etc/localtime:ro"
2022-11-02 11:30:13 +01:00
];
2023-03-03 17:57:48 +01:00
extraOptions = [
"--log-opt=tag='rss-brige'"
];
2022-11-02 11:30:13 +01:00
};
};
}