ntfy-sh notifiers
Collection of notifiers for ntfy-sh.
View the nix-core NixOS module on GitHub.
References
Setup
Import and enable the module:
Server
imports = [ inputs.core.nixosModules.ntfy-sh ]
services.ntfy-sh = {
enable = true;
reverseProxy.enable = true;
settings.base-url = "https://ntfy.example.tld";
# add notifiers. See `default.nix`
notifiers = {
monitor-domains = [
{
fqdn = "foo.bar";
topic = "foo-bar";
}
];
};
};
Add a CNAME record for ntfy.example.tld to point to example.tld.
Client
Android
- Download and install the ntfy app.
- Open the ntfy app.
- Allow notifications for ntfy.
- Subscribe to your topics:
- Click on the plus icon in the bottom right corner.
- Enter your topic (e.g. foo-bar, see server setup above).
- Check Use another server.
- Enter your ntfy url (
services.ntfy-sh.settings.base-url
). - Click Subscribe.