diff --git a/hosts/rico1/services/postgresql.nix b/hosts/rico1/services/postgresql.nix index 4dcf6e6..5e7b96f 100644 --- a/hosts/rico1/services/postgresql.nix +++ b/hosts/rico1/services/postgresql.nix @@ -1,5 +1,14 @@ _: { services.postgresql = { enable = true; + ensureDatabases = ["dendrite"]; + ensureUsers = [ + { + name = "dendrite"; + ensurePermissions = { + "DaTABASE dendrite" = "ALL PRIVILEGES"; + }; + } + ]; }; }