nixos/minetest fix: add missing uid/gid for minetest

This commit is contained in:
Edward Tjörnhammar 2018-11-11 12:41:27 +01:00
parent d598672020
commit 888d01da48
No known key found for this signature in database
GPG Key ID: 577898458385603E
2 changed files with 5 additions and 0 deletions

View File

@ -335,6 +335,7 @@
kapacitor = 308;
solr = 309;
alerta = 310;
minetest = 311;
# When adding a uid, make sure it doesn't match an existing gid. And don't use uids above 399!
@ -630,6 +631,7 @@
kapacitor = 308;
solr = 309;
alerta = 310;
minetest = 311;
# When adding a gid, make sure it doesn't match an existing
# uid. Users and groups with the same name should have equal

View File

@ -84,7 +84,9 @@ in
home = "/var/lib/minetest";
createHome = true;
uid = config.ids.uids.minetest;
group = "minetest";
};
users.groups.minetest.gid = config.ids.gids.minetest;
systemd.services.minetest-server = {
description = "Minetest Server Service";
@ -93,6 +95,7 @@ in
serviceConfig.Restart = "always";
serviceConfig.User = "minetest";
serviceConfig.Group = "minetest";
script = ''
cd /var/lib/minetest