This commit is contained in:
muon 2025-04-13 20:18:44 +00:00
parent 44542101e5
commit e4fb3b6d87
4 changed files with 31 additions and 0 deletions

View file

@ -21,5 +21,6 @@
./chat.nix
./dash.nix
./nvr.nix
./ntfy.nix
];
}

View file

@ -0,0 +1,28 @@
{ pkgs, lib, config, ... }:
let
cfg = config.mods.server.ntfy;
port = config.mods.server.nginx.ports.ntfy;
in with lib; {
options.mods.server = {
ntfy = {
enable = mkEnableOption {
default = false;
description = "enables ntfy-sh server";
};
};
};
config = mkIf cfg.enable {
services.ntfy-sh = {
enable = true;
settings = {
listen-http = "0.0.0.0:${toString port}";
base-url = "https://ntfy.muon.host";
behind-proxy = true;
auth-default-access = "deny-all";
enable-login = true;
};
};
};
}