From f8655e5440d320c023efd1a0c5f03b44a681f982 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vili=20Sinerv=C3=A4?= Date: Fri, 6 Sep 2024 20:44:38 +0300 Subject: [PATCH] Add basic ntfy conf --- services/ntfy.nix | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/services/ntfy.nix b/services/ntfy.nix index 74a3b06..f053974 100644 --- a/services/ntfy.nix +++ b/services/ntfy.nix @@ -1 +1,19 @@ -{ config, pkgs, ... }: { } +{ config, pkgs, ... }: +{ + networking.firewall.allowedTCPPorts = [ + 80 + 443 + ]; + networking.firewall.allowedUDPPorts = [ 443 ]; + + services.ntfy = { + enable = true; + settings = { + base-url = "https://ntfy.vsinerva.fi"; + listen-https = ":443"; + key-file = "/var/lib/ntfy/privkey.pem"; + cert-file = "/var/lib/ntfy/fullchain.pem"; + cache-file = "/var/lib/ntfy/notif-cache.sqlite"; + }; + }; +}