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:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user