mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
services: add rss-bridge to newton
This commit is contained in:
parent
b8149f88ed
commit
8c5a1e2523
4 changed files with 76 additions and 1 deletions
34
modules/services/rss-bridge/default.nix
Normal file
34
modules/services/rss-bridge/default.nix
Normal 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}";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
28
nixos/modules/webapps/rss-bridge.nix
Normal file
28
nixos/modules/webapps/rss-bridge.nix
Normal 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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -5,6 +5,7 @@
|
||||||
./disks.nix
|
./disks.nix
|
||||||
./network.nix
|
./network.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
|
./services.nix
|
||||||
#../modules/backup.nix
|
#../modules/backup.nix
|
||||||
../modules/compression.nix
|
../modules/compression.nix
|
||||||
../modules/docker.nix
|
../modules/docker.nix
|
||||||
|
@ -13,13 +14,13 @@
|
||||||
../modules/nix.nix
|
../modules/nix.nix
|
||||||
../modules/ssh.nix
|
../modules/ssh.nix
|
||||||
../modules/users.nix
|
../modules/users.nix
|
||||||
../modules/webapps/config.nix
|
|
||||||
../modules/webapps/gitea.nix
|
../modules/webapps/gitea.nix
|
||||||
../modules/webapps/hedgedoc.nix
|
../modules/webapps/hedgedoc.nix
|
||||||
../modules/webapps/homer.nix
|
../modules/webapps/homer.nix
|
||||||
../modules/webapps/navidrome.nix
|
../modules/webapps/navidrome.nix
|
||||||
../modules/webapps/paperless.nix
|
../modules/webapps/paperless.nix
|
||||||
../modules/webapps/radicale.nix
|
../modules/webapps/radicale.nix
|
||||||
|
#../modules/webapps/rss-bridge.nix
|
||||||
];
|
];
|
||||||
networking.hostName = "newton";
|
networking.hostName = "newton";
|
||||||
|
|
||||||
|
|
12
nixos/newton/services.nix
Normal file
12
nixos/newton/services.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue