From c628f544b9e2ff7330c7eca46721ada76ea2bb21 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 6 Jan 2024 10:40:19 -0800 Subject: [PATCH] Create groups for users --- lemmy-docker.nix | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/lemmy-docker.nix b/lemmy-docker.nix index a523850..0fdb418 100644 --- a/lemmy-docker.nix +++ b/lemmy-docker.nix @@ -367,16 +367,22 @@ in { }; }; - users.users = { - lemmy-pictrs = { - isSystemUser = true; - uid = 986; - group = "lemmy-pictrs"; + users = { + users = { + lemmy-pictrs = { + isSystemUser = true; + uid = 986; + group = "lemmy-pictrs"; + }; + lemmy-postgres = { + isSystemUser = true; + uid = 985; + group = "lemmy-postgres"; + }; }; - lemmy-postgres = { - isSystemUser = true; - uid = 985; - group = "lemmy-postgres"; + groups = { + lemmy-pictrs = { members = [ "lemmy-pictrs" ]; }; + lemmy-postgres = { members = [ "lemmy-postgres" ]; }; }; };