From 6d14ff1999b4f5767bddcc1fea1e9138ef9f8ff5 Mon Sep 17 00:00:00 2001 From: niten Date: Sat, 6 Jan 2024 10:38:58 -0800 Subject: [PATCH] Make group for users --- authentik-container.nix | 34 +++++++++++++++++++--------------- 1 file changed, 19 insertions(+), 15 deletions(-) diff --git a/authentik-container.nix b/authentik-container.nix index e2e18f1..c9a4215 100644 --- a/authentik-container.nix +++ b/authentik-container.nix @@ -104,22 +104,26 @@ in { }; }; - users.users = { - authentik = { - isSystemUser = true; - group = "authentik"; - uid = cfg.uids.authentik; - }; - authentik-postgres = { - isSystemUser = true; - group = "authentik"; - uid = cfg.uids.postgres; - }; - authentik-redis = { - isSystemUser = true; - group = "authentik"; - uid = cfg.uids.redis; + users = { + users = { + authentik = { + isSystemUser = true; + group = "authentik"; + uid = cfg.uids.authentik; + }; + authentik-postgres = { + isSystemUser = true; + group = "authentik"; + uid = cfg.uids.postgres; + }; + authentik-redis = { + isSystemUser = true; + group = "authentik"; + uid = cfg.uids.redis; + }; }; + groups.authentik.members = + [ "authentik" "authentik-postgres" "authentik-redis" ]; }; fudo.secrets.host-secrets."${hostname}" = {