feat: add remote, with rss, cache, discord, and zulip
This commit is contained in:
parent
50ec63a474
commit
83baab68e0
32 changed files with 6615 additions and 40 deletions
57
remote/configuration.nix
Normal file
57
remote/configuration.nix
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
system.stateVersion = "24.11";
|
||||
|
||||
networking.hostName = "noisebell-remote";
|
||||
|
||||
nix.settings.experimental-features = [ "nix-command" "flakes" ];
|
||||
|
||||
services.openssh.enable = true;
|
||||
services.caddy.enable = true;
|
||||
|
||||
users.users.root.openssh.authorizedKeys.keys = [
|
||||
# Add your SSH public key here
|
||||
];
|
||||
|
||||
# ── Secrets ───────────────────────────────────────────────────────────
|
||||
|
||||
age.secrets.pi-api-key.file = ./secrets/pi-api-key.age;
|
||||
age.secrets.pi-inbound-api-key.file = ./secrets/pi-inbound-api-key.age;
|
||||
age.secrets.discord-token.file = ./secrets/discord-token.age;
|
||||
age.secrets.discord-webhook-secret.file = ./secrets/discord-webhook-secret.age;
|
||||
age.secrets.rss-webhook-secret.file = ./secrets/rss-webhook-secret.age;
|
||||
|
||||
# ── Cache ─────────────────────────────────────────────────────────────
|
||||
|
||||
services.noisebell-cache = {
|
||||
enable = true;
|
||||
domain = "noisebell.extremist.software";
|
||||
piAddress = "http://noisebell:80";
|
||||
inboundApiKeyFile = config.age.secrets.pi-api-key.path;
|
||||
piApiKeyFile = config.age.secrets.pi-inbound-api-key.path;
|
||||
outboundWebhooks = [
|
||||
{ url = "https://discord.noisebell.extremist.software/webhook"; secretFile = config.age.secrets.discord-webhook-secret.path; }
|
||||
{ url = "https://rss.noisebell.extremist.software/webhook"; secretFile = config.age.secrets.rss-webhook-secret.path; }
|
||||
];
|
||||
};
|
||||
|
||||
# ── Discord ───────────────────────────────────────────────────────────
|
||||
|
||||
services.noisebell-discord = {
|
||||
enable = true;
|
||||
domain = "discord.noisebell.extremist.software";
|
||||
discordTokenFile = config.age.secrets.discord-token.path;
|
||||
channelId = "000000000000000000"; # Replace with actual channel ID
|
||||
webhookSecretFile = config.age.secrets.discord-webhook-secret.path;
|
||||
};
|
||||
|
||||
# ── RSS ───────────────────────────────────────────────────────────────
|
||||
|
||||
services.noisebell-rss = {
|
||||
enable = true;
|
||||
domain = "rss.noisebell.extremist.software";
|
||||
webhookSecretFile = config.age.secrets.rss-webhook-secret.path;
|
||||
};
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue