summaryrefslogtreecommitdiff
path: root/hosts/experimental-nixos/services/ntfy-sh.nix
diff options
context:
space:
mode:
authorm4siri <git@m4siri.com>2025-11-29 10:37:28 +0545
committerm4siri <git@m4siri.com>2025-11-29 10:38:01 +0545
commit9b9edc04c48f4108321f0752abe354ee3c493d69 (patch)
treea7595710cc1023bfcb24928e85302cd6245b5fd4 /hosts/experimental-nixos/services/ntfy-sh.nix
parentbc3e939c9362321bdd0a956594b531046b8cbffd (diff)
add: ntfy & mollysocketmain
Diffstat (limited to 'hosts/experimental-nixos/services/ntfy-sh.nix')
-rw-r--r--hosts/experimental-nixos/services/ntfy-sh.nix31
1 files changed, 31 insertions, 0 deletions
diff --git a/hosts/experimental-nixos/services/ntfy-sh.nix b/hosts/experimental-nixos/services/ntfy-sh.nix
new file mode 100644
index 0000000..a8e1c90
--- /dev/null
+++ b/hosts/experimental-nixos/services/ntfy-sh.nix
@@ -0,0 +1,31 @@
+{
+ pkgs,
+ nixpkgs-unstable,
+ unstable,
+ config,
+ ...
+}: {
+
+ disabledModules = ["services/misc/ntfy-sh.nix"];
+ imports = [
+ "${nixpkgs-unstable}/nixos/modules/services/misc/ntfy-sh.nix"
+ ];
+
+ services.ntfy-sh.enable = true;
+ services.ntfy-sh = {
+ package = unstable.ntfy-sh;
+ settings = {
+ base-url = "https://ntfy.m4siri.com";
+ listen-http = ":8090";
+ behind-proxy = true;
+ auth-file = "/var/lib/ntfy-sh/user.db";
+ auth-users = [ "siri:$2a$10$nUCo79YppcG1wtuZCHRDquxfoXu3PIBdB2TzvXZj3EthED5LSKXWa:admin" ];
+ auth-access = ["*:up*:wo" ];
+ auth-default-access = "deny-all";
+ require-login = true;
+ enable-login = true;
+ web-root = "disable";
+ };
+ };
+
+}