Configure nextcloud for montalin

This commit is contained in:
Fabian Hauser 2020-10-23 17:35:24 +00:00
parent d5cb513227
commit f9c7e0ed0c
6 changed files with 58 additions and 17 deletions

View file

@ -2,10 +2,15 @@
{
imports = [
../../role/database
];
services.postgresql = {
#enable = true; # Required? Better in role?
package = pkgs.postgresql_12;
ensureDatabases = [ "nextcloud" ];
ensureUsers = [
{ name = "nextcloud";
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
}
];
};
services.postgresqlBackup.enable = true; # TODO: Role?
}