diff options
author | Nguyễn Gia Phong <cnx@loang.net> | 2024-01-10 22:46:43 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <cnx@loang.net> | 2024-01-10 22:46:43 +0900 |
commit | 7503af7dba3ec66152ea230c423cd1a09a8c4158 (patch) | |
tree | 278feb6c24226b1b082e62a1242d7ea4ce445c73 | |
parent | 32c021bbed7707301f73e2d8362002a615502ed6 (diff) | |
download | nixos-conf-7503af7dba3ec66152ea230c423cd1a09a8c4158.tar.gz |
Adapt to services.postgresql new interface
-rw-r--r-- | irc.nix | 2 | ||||
-rw-r--r-- | matrix.nix | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/irc.nix b/irc.nix index 9c5b309..9f69ec3 100644 --- a/irc.nix +++ b/irc.nix @@ -57,7 +57,7 @@ in { ensureDatabases = [ "soju" ]; ensureUsers = [ { name = "soju"; - ensurePermissions."DATABASE soju" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } ]; }; postgresqlBackup.databases = [ "soju" ]; diff --git a/matrix.nix b/matrix.nix index b88899f..e5c4147 100644 --- a/matrix.nix +++ b/matrix.nix @@ -121,7 +121,7 @@ in { ensureDatabases = [ "dendrite" ]; ensureUsers = [ { name = "dendrite"; - ensurePermissions."DATABASE dendrite" = "ALL PRIVILEGES"; + ensureDBOwnership = true; } ]; }; postgresqlBackup.databases = [ "dendrite" ]; |