From 48d7cf98bd299f112bdd6fae0025bf4ec14a33cc Mon Sep 17 00:00:00 2001 From: quantenzitrone Date: Mon, 29 Jun 2026 06:39:08 +0200 Subject: [PATCH] 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 --- nixos/modules/services/misc/ntfy-sh.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/nixos/modules/services/misc/ntfy-sh.nix b/nixos/modules/services/misc/ntfy-sh.nix index 8e10576f54e4..69919c83e779 100644 --- a/nixos/modules/services/misc/ntfy-sh.nix +++ b/nixos/modules/services/misc/ntfy-sh.nix @@ -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";