diff options
Diffstat (limited to 'hosts/experimental-nixos/services/ntfy-sh.nix')
| -rw-r--r-- | hosts/experimental-nixos/services/ntfy-sh.nix | 31 |
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"; + }; + }; + +} |
