From ea98efd4905c8f625d0e79112632a7caf4d951e5 Mon Sep 17 00:00:00 2001 From: Sense T Date: Sat, 2 Dec 2023 08:02:48 +0800 Subject: [PATCH] update postgresql config --- global/software-configuration.nix | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/global/software-configuration.nix b/global/software-configuration.nix index 40aa612..7347e67 100644 --- a/global/software-configuration.nix +++ b/global/software-configuration.nix @@ -38,36 +38,28 @@ in ensureUsers = [ { name = "k3s"; - ensurePermissions = { - "DATABASE k3s" = "ALL PRIVILEGES"; - }; + ensureDBOwnership = true; ensureClauses = { login = true; }; } { name = "gitea"; - ensurePermissions = { - "DATABASE gitea" = "ALL PRIVILEGES"; - }; + ensureDBOwnership = true; ensureClauses = { login = true; }; } { name = "vaultwarden"; - ensurePermissions = { - "DATABASE vaultwarden" = "ALL PRIVILEGES"; - }; + ensureDBOwnership = true; ensureClauses = { login = true; }; } { name = "saysthbot"; - ensurePermissions = { - "DATABASE saysthbot" = "ALL PRIVILEGES"; - }; + ensureDBOwnership = true; ensureClauses = { login = true; };