diff --git a/modules/server/containers/apps/authentik.nix b/modules/server/containers/apps/authentik.nix index 5dcd10f..8c7fa26 100644 --- a/modules/server/containers/apps/authentik.nix +++ b/modules/server/containers/apps/authentik.nix @@ -19,12 +19,9 @@ in { sops = true; db = true; paths = [{ - path="${serverCfg.configPath}/authentik/media"; - owner = "1000:1000"; - mode = "0755"; - }{ - path="${serverCfg.configPath}/authentik/templates"; + path="${serverCfg.path.config}/authentik"; owner = "1000:1000"; + dirs = ["media" "templates"]; mode = "0755"; }]; @@ -55,8 +52,8 @@ in { cmd = [ "server" ]; volumes = [ - "${serverCfg.configPath}/authentik/media:/media" - "${serverCfg.configPath}/authentik/templates:/templates" + "${serverCfg.path.config}/authentik/media:/media" + "${serverCfg.path.config}/authentik/templates:/templates" "${authentikData}:/blueprints/custom:ro" ]; }; @@ -77,8 +74,8 @@ in { overrides = { cmd = [ "worker" ]; volumes = [ - "${serverCfg.configPath}/authentik/media:/media" - "${serverCfg.configPath}/authentik/templates:/templates" + "${serverCfg.path.config}/authentik/media:/media" + "${serverCfg.path.config}/authentik/templates:/templates" "${authentikData}:/blueprints/custom:ro" ]; };