services: add rss-bridge to newton

This commit is contained in:
Felix Buehler 2022-07-30 15:01:21 +02:00
parent b8149f88ed
commit 8c5a1e2523
4 changed files with 76 additions and 1 deletions

View file

@ -0,0 +1,34 @@
# 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}";
};
};
};
}

View file

@ -0,0 +1,28 @@
{ config, pkgs, ... }:
let
domain = "rss-bridge.buehler.rocks";
in
{
services.rss-bridge = {
enable = true;
virtualHost = domain;
};
services.nginx.virtualHosts.${domain} = {
forceSSL = true;
enableACME = true;
};
security.acme.certs.${domain} = {
group = "nginx";
};
webapps.apps.rss-bridge = {
dashboard = {
name = "RSS-Bridge";
category = "app";
icon = "rss";
link = "https://rss-bridge.buehler.rocks";
};
};
}

View file

@ -5,6 +5,7 @@
./disks.nix
./network.nix
./syncthing.nix
./services.nix
#../modules/backup.nix
../modules/compression.nix
../modules/docker.nix
@ -13,13 +14,13 @@
../modules/nix.nix
../modules/ssh.nix
../modules/users.nix
../modules/webapps/config.nix
../modules/webapps/gitea.nix
../modules/webapps/hedgedoc.nix
../modules/webapps/homer.nix
../modules/webapps/navidrome.nix
../modules/webapps/paperless.nix
../modules/webapps/radicale.nix
#../modules/webapps/rss-bridge.nix
];
networking.hostName = "newton";

12
nixos/newton/services.nix Normal file
View file

@ -0,0 +1,12 @@
# Deployed services
{ config, lib, ... }:
let
secrets = config.sops.secrets;
in
{
# List services that you want to enable:
my.services = {
# RSS provider for websites that do not provide any feeds
rss-bridge.enable = true;
};
}