ntfy: add ntfy push notification service on boron #922
No files matched your search
@@ -73,7 +73,8 @@ in
|
||||
(lib.lists.optional config.custom.services.async_coder.enable "/var/lib/async-coder") ++
|
||||
(lib.lists.optional config.services.caddy.enable "/var/lib/caddy") ++
|
||||
(lib.lists.optional config.services.tailscale.enable "/var/lib/tailscale") ++
|
||||
(lib.lists.optional config.services.unbound.enable "/var/lib/unbound");
|
||||
(lib.lists.optional config.services.unbound.enable "/var/lib/unbound") ++
|
||||
(lib.lists.optional config.services.ntfy-sh.enable "/var/lib/private/ntfy-sh");
|
||||
};
|
||||
}
|
||||
(lib.mkIf cfg.cache.enable {
|
||||
|
||||
@@ -43,6 +43,7 @@ in
|
||||
matrix = "boron.cx.${config.ogygia.domain}";
|
||||
mautrix_discord = "warlock.cx.${config.ogygia.domain}";
|
||||
mosquitto = "stinger.pop.${config.ogygia.domain}";
|
||||
ntfy = "boron.cx.${config.ogygia.domain}";
|
||||
nix-builder = [
|
||||
"slider.pop.${config.ogygia.domain}"
|
||||
"boron.cx.${config.ogygia.domain}"
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
./nix-builder
|
||||
./nix-prefetch-repos.nix
|
||||
./nix-remote-builder.nix
|
||||
./ntfy.nix
|
||||
./offline-youtube
|
||||
./ollama.nix
|
||||
./openclaw
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
{ config, lib, ... }:
|
||||
|
||||
let
|
||||
cfg = config.custom.services.ntfy;
|
||||
in
|
||||
{
|
||||
options.custom.services.ntfy = {
|
||||
enable = lib.mkEnableOption "ntfy";
|
||||
};
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
services.ntfy-sh = {
|
||||
enable = true;
|
||||
settings = {
|
||||
listen-http = "127.0.0.1:2586";
|
||||
base-url = "https://ntfy.hillion.co.uk";
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -122,6 +122,15 @@ in
|
||||
'';
|
||||
|
||||
## ACME sites
|
||||
"ntfy.hillion.co.uk".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {
|
||||
zone_token {env.CF_ZONE_TOKEN}
|
||||
api_token {env.CF_API_TOKEN_HILLION_CO_UK}
|
||||
}
|
||||
}
|
||||
reverse_proxy http://localhost:2586
|
||||
'';
|
||||
"matrix.hillion.co.uk".extraConfig = ''
|
||||
tls {
|
||||
dns cloudflare {
|
||||
|
||||
Reference in new issue
Block a user