nixos/terraria: set primary group
This commit is contained in:
parent
bad39490e9
commit
9c8890f2e5
1 changed files with 1 additions and 1 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue