From d92f27bd03b268be92d17dc9b917bda3f161dedb Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Sun, 7 Jan 2024 16:26:11 +0100 Subject: [PATCH] don't manage database permissions in nix closes #24 --- nixos/modules/terraform-database/default.nix | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nixos/modules/terraform-database/default.nix b/nixos/modules/terraform-database/default.nix index db68f34..e13e50e 100644 --- a/nixos/modules/terraform-database/default.nix +++ b/nixos/modules/terraform-database/default.nix @@ -36,10 +36,7 @@ in { ssl_ca_file = serverCert; }; - ensureUsers = [{ - name = "terraform"; - ensurePermissions = { "DATABASE terraformstates" = "ALL PRIVILEGES"; }; - }]; + ensureUsers = [{ name = "terraform"; }]; }; age.secrets."postgresql_server.key" = {