nixos/ntfy-sh: add RuntimeDirectory to systemd unit

this is useful for the listen-unix option, since it creates a unix socket and sockets go into the runtime directory
This commit is contained in:
quantenzitrone
2026-06-29 06:39:08 +02:00
parent e73de5be04
commit 48d7cf98bd
+1
View File
@@ -103,6 +103,7 @@ in
ExecStart = "${cfg.package}/bin/ntfy serve -c ${configuration}";
User = cfg.user;
StateDirectory = "ntfy-sh";
RuntimeDirectory = "ntfy-sh";
DynamicUser = true;
AmbientCapabilities = "CAP_NET_BIND_SERVICE";