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