fix(minecraft-servers): don't createHome for user, use mkdir instead

Using createHome forces a specific set of permissions on the folder,
which prevents it from being accessed by the minecraft group.

Creating the folder from the service instead allows for it to have the
correct permissions.
This commit is contained in:
Infinidoge 2022-03-06 00:12:58 -05:00
parent 730152e699
commit 8feed83db3

View file

@ -54,7 +54,6 @@ in
users.users.minecraft = {
description = "Minecraft server service user";
home = cfg.dataDir;
createHome = true;
isSystemUser = true;
group = "minecraft";
};