2021-02-05 19:59:25 +01:00
|
|
|
# Get RSS feeds from websites that don't natively have one
|
|
|
|
{ config, lib, ... }:
|
|
|
|
let
|
|
|
|
cfg = config.my.services.rss-bridge;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options.my.services.rss-bridge = {
|
|
|
|
enable = lib.mkEnableOption "RSS-Bridge service";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
|
|
services.rss-bridge = {
|
|
|
|
enable = true;
|
2024-04-07 13:30:40 +02:00
|
|
|
config = {
|
|
|
|
system.enabled_bridges = [ "*" ]; # Whitelist all
|
|
|
|
};
|
2021-08-24 23:05:10 +02:00
|
|
|
virtualHost = "rss-bridge.${config.networking.domain}";
|
2021-02-05 19:59:25 +01:00
|
|
|
};
|
|
|
|
|
2021-08-24 23:05:10 +02:00
|
|
|
# The service above configures the domain, no need for my wrapper
|
|
|
|
services.nginx.virtualHosts."rss-bridge.${config.networking.domain}" = {
|
2021-02-05 19:59:25 +01:00
|
|
|
forceSSL = true;
|
2021-08-24 23:05:10 +02:00
|
|
|
useACMEHost = config.networking.domain;
|
2021-02-05 19:59:25 +01:00
|
|
|
};
|
2021-11-05 15:21:42 +01:00
|
|
|
|
|
|
|
my.system.persist.directories = [
|
|
|
|
config.services.rss-bridge.dataDir
|
|
|
|
];
|
2021-02-05 19:59:25 +01:00
|
|
|
};
|
|
|
|
}
|