[mc-clj] make state dir writable

This commit is contained in:
niten 2022-09-06 13:34:35 -07:00
parent 037c54cee4
commit 042b603397
1 changed files with 2 additions and 0 deletions

View File

@ -222,6 +222,7 @@ in {
User = cfg.user;
Group = cfg.group;
WorkingDirectory = stateDir;
ExecStartPre = "${startScript}";
ExecStart = let
mem = "${toString worldOpts.allocated-memory}G";
memFlags = [ "-Xms${mem}" "-Xmx${mem}" ];
@ -242,6 +243,7 @@ in {
RestrictAddressFamilies = [ "AF_INET" "AF_INET6" ];
RestrictRealtime = true;
RestrictNamespaces = true;
ReadWritePaths = [ stateDir ];
};
}) cfg.worlds;
};