mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-07-05 09:19:28 +02:00
34 lines
690 B
Nix
34 lines
690 B
Nix
# Get RSS feeds from websites that don't natively have one
|
|
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.services.rss-bridge;
|
|
domain = "rss-bridge.${config.networking.domain}";
|
|
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
|
|
virtualHost = domain;
|
|
webserver = "caddy";
|
|
};
|
|
|
|
webapps.apps.rss-bridge = {
|
|
dashboard = {
|
|
name = "RSS-Bridge";
|
|
category = "other";
|
|
icon = "rss";
|
|
url = "https://${domain}";
|
|
};
|
|
};
|
|
};
|
|
}
|