nixos/soft-serve: fix executing hooks

This fixes #498748
This commit is contained in:
Tim Schubert
2026-03-14 22:18:14 +01:00
parent 8b0ac61762
commit 2f609d7727
+5 -4
View File
@@ -28,7 +28,7 @@ in
'';
example = lib.literalExpression ''
{
name = "dadada's repos";
name = "user's repos";
log_format = "text";
ssh = {
listen_addr = ":23231";
@@ -60,10 +60,12 @@ in
DynamicUser = true;
Restart = "always";
ExecStart = "${lib.getExe cfg.package} serve";
# Hooks must be executable, but DynamicUser mounts /var/lib/private as noexec
ExecPaths = "${stateDir}/repos";
StateDirectory = "soft-serve";
WorkingDirectory = stateDir;
RuntimeDirectory = "soft-serve";
RuntimeDirectoryMode = "0750";
ProcSubset = "pid";
ProtectProc = "invisible";
UMask = "0027";
@@ -86,7 +88,6 @@ in
LockPersonality = true;
MemoryDenyWriteExecute = true;
RestrictRealtime = true;
RemoveIPC = true;
PrivateMounts = true;
SystemCallArchitectures = "native";
SystemCallFilter = [