mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
35 lines
770 B
Nix
35 lines
770 B
Nix
![]() |
# Get RSS feeds from websites that don't natively have one
|
||
|
{ config, lib, ... }:
|
||
|
let
|
||
|
cfg = config.my.services.rss-bridge;
|
||
|
#domain = "rss-bridge.${config.networking.domain}";
|
||
|
domain = "rss-bridge.buehler.rocks";
|
||
|
in
|
||
|
{
|
||
|
options.my.services.rss-bridge = {
|
||
|
enable = lib.mkEnableOption "RSS-Bridge service";
|
||
|
};
|
||
|
|
||
|
config = lib.mkIf cfg.enable {
|
||
|
services.rss-bridge = {
|
||
|
enable = true;
|
||
|
whitelist = [ "*" ]; # Whitelist all
|
||
|
virtualHost = domain;
|
||
|
};
|
||
|
|
||
|
services.nginx.virtualHosts.${domain} = {
|
||
|
forceSSL = true;
|
||
|
enableACME = true;
|
||
|
};
|
||
|
|
||
|
webapps.apps.rss-bridge = {
|
||
|
dashboard = {
|
||
|
name = "RSS-Bridge";
|
||
|
category = "app";
|
||
|
icon = "rss";
|
||
|
link = "https://${domain}";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|