31 lines
625 B
Nix
31 lines
625 B
Nix
{
|
|
lib,
|
|
pkgs,
|
|
inputs,
|
|
namespace,
|
|
system,
|
|
target,
|
|
format,
|
|
virtual,
|
|
systems,
|
|
config,
|
|
...
|
|
}:
|
|
with lib;
|
|
with lib.custom; {
|
|
services.ntfy-sh = {
|
|
enable = true;
|
|
settings = {
|
|
base-url = "https://ntfy.kylekrein.com";
|
|
listen-http = ":9000";
|
|
#auth-default-access = "read-only";
|
|
smtp-server-listen = ":1299";
|
|
smtp-server-domain = "localhost.com";
|
|
behind-proxy = true;
|
|
enable-login = true;
|
|
cache-file = "/var/lib/ntfy-sh/cache-file.db";
|
|
auth-file = "/var/lib/ntfy-sh/user.db";
|
|
attachment-cache-dir = "/var/lib/ntfy-sh/attachments";
|
|
};
|
|
};
|
|
}
|