16 lines
269 B
Nix
16 lines
269 B
Nix
{ config, pkgs, ... }:
|
|
|
|
{
|
|
|
|
imports = [
|
|
../../role/database
|
|
];
|
|
services.postgresql = {
|
|
ensureDatabases = [ "nextcloud" ];
|
|
ensureUsers = [
|
|
{ name = "nextcloud";
|
|
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
|
|
}
|
|
];
|
|
};
|
|
}
|