configuration.nix/hosts/wynne/services/apps/ntfy.nix

33 lines
916 B
Nix
Raw Normal View History

2024-11-17 14:06:41 +05:30
{ lib, ... }:
let domainName = "ntfy.acomputer.lol"; in {
2024-09-17 23:13:44 +05:30
services = {
ntfy-sh = {
enable = true;
settings = {
base-url = "https://${domainName}";
listen-http = "10.10.10.13:8080";
2024-11-17 14:06:41 +05:30
metrics-listen-http = "10.10.10.13:8081";
2024-09-17 23:47:19 +05:30
auth-file = "/mnt/data/ntfy-sh/user.db";
attachment-cache-dir = "/mnt/data/ntfy-sh/attachments";
cache-file = "/mnt/data/ntfy-sh/cache-file.db";
2024-10-25 22:57:53 +05:30
enable-login = true;
2024-09-17 23:47:19 +05:30
auth-default-access = "deny-all";
2024-09-17 23:13:44 +05:30
};
};
};
2024-11-23 00:22:19 +05:30
systemd.services.ntfy-sh = {
after = [ "wg-quick-Homelab.service" ];
unitConfig.RequiresMountsFor = [ "/mnt/data" ];
serviceConfig = {
WorkingDirectory = "/mnt/data/ntfy-sh";
User = "ntfy-sh";
Group = "ntfy-sh";
DynamicUser = lib.mkForce false;
};
};
2024-09-18 00:30:39 +05:30
users.users.ntfy-sh.home = "/mnt/data/ntfy-sh";
users.users.ntfy-sh.createHome = true;
2024-09-17 23:13:44 +05:30
}