diff --git a/module.nix b/module.nix index b51ad35..c7efe47 100644 --- a/module.nix +++ b/module.nix @@ -133,7 +133,7 @@ in package = pkgs.postgresql_14; ensureDatabases = mkIf cfg.createDatabase [ "authentik" ]; ensureUsers = mkIf cfg.createDatabase [ - { name = "authentik"; ensurePermissions."DATABASE authentik" = "ALL PRIVILEGES"; } + { name = "authentik"; ensureDBOwnership = true; } ]; }; };