Configure nextcloud for montalin
This commit is contained in:
parent
d5cb513227
commit
f9c7e0ed0c
6 changed files with 58 additions and 17 deletions
|
@ -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?
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue