nixos/terraria: set primary group

This commit is contained in:
lassulus 2022-07-11 13:19:19 +02:00
parent bad39490e9
commit 9c8890f2e5

View file

@ -131,6 +131,7 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
users.users.terraria = { users.users.terraria = {
description = "Terraria server service user"; description = "Terraria server service user";
group = "terraria";
home = cfg.dataDir; home = cfg.dataDir;
createHome = true; createHome = true;
uid = config.ids.uids.terraria; uid = config.ids.uids.terraria;
@ -138,7 +139,6 @@ in
users.groups.terraria = { users.groups.terraria = {
gid = config.ids.gids.terraria; gid = config.ids.gids.terraria;
members = [ "terraria" ];
}; };
systemd.services.terraria = { systemd.services.terraria = {