aboutsummaryrefslogtreecommitdiff
path: root/modules/authentik/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/authentik/default.nix14
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/authentik/default.nix b/modules/authentik/default.nix
index 600efb3..7898e0f 100644
--- a/modules/authentik/default.nix
+++ b/modules/authentik/default.nix
@@ -2,7 +2,7 @@
with self.lib.nginx;
-let version = "2023.10.7";
+let version = "2024.2.1";
in
{
virtualisation.oci-containers.backend = "podman";
@@ -43,7 +43,7 @@ in
image = "ghcr.io/goauthentik/ldap:${version}";
environmentFiles = [ "/etc/secrets/authentik/ldap.env" ];
autoStart = true;
- extraOptions = ["-m=1000m"];
+ extraOptions = [ "-m=1000m" ];
ports = [
"389:3389"
"636:6636"
@@ -97,12 +97,10 @@ in
services.postgresql = {
ensureDatabases = [ "authentik" ];
- ensureUsers = [
- {
- name = "authentik";
- ensurePermissions = { "DATABASE authentik" = "ALL PRIVILEGES"; };
- }
- ];
+ ensureUsers = [{
+ name = "authentik";
+ ensureDBOwnership = true;
+ }];
};
secrets = {