nixos-conf/services/ntfy.nix

20 lines
431 B
Nix
Raw Normal View History

2024-09-06 20:44:38 +03:00
{ 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";
};
};
}