nix-config/modules/nixos/services/rss-bridge/default.nix
Bruno BELANYI 6b51b4e2ab
All checks were successful
ci/woodpecker/push/check Pipeline was successful
nixos: services: rss-bridge: fix deprecated option
2024-04-07 13:30:40 +02:00

27 lines
692 B
Nix

# 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;
config = {
system.enabled_bridges = [ "*" ]; # Whitelist all
};
virtualHost = "rss-bridge.${config.networking.domain}";
};
# The service above configures the domain, no need for my wrapper
services.nginx.virtualHosts."rss-bridge.${config.networking.domain}" = {
forceSSL = true;
useACMEHost = config.networking.domain;
};
};
}