nixos/modules/services/rss-bridge/default.nix

34 lines
751 B
Nix
Raw Normal View History

2022-07-30 15:01:21 +02:00
# Get RSS feeds from websites that don't natively have one
{ config, lib, ... }:
let
cfg = config.my.services.rss-bridge;
2022-11-09 22:14:20 +01:00
domain = "rss-bridge.${config.networking.domain}";
2022-07-30 15:01:21 +02:00
in
{
options.my.services.rss-bridge = {
enable = lib.mkEnableOption "RSS-Bridge service";
};
config = lib.mkIf cfg.enable {
services.rss-bridge = {
enable = true;
config.system.enabled_bridges = [ "*" ]; # Whitelist all
2022-07-30 15:01:21 +02:00
virtualHost = domain;
};
services.nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
};
webapps.apps.rss-bridge = {
dashboard = {
name = "RSS-Bridge";
category = "other";
2022-07-30 15:01:21 +02:00
icon = "rss";
2023-11-12 20:39:44 +01:00
url = "https://${domain}";
2022-07-30 15:01:21 +02:00
};
};
};
}