forked from CCCHH/nix-infra
18 lines
442 B
Nix
18 lines
442 B
Nix
# Sources for this configuration:
|
|
# - https://github.com/NixOS/nixpkgs/blob/dce84c46d780b20c064d5dfb10d0686e0584a198/nixos/modules/services/web-apps/nextcloud.nix#L1069
|
|
|
|
{ config, pkgs, ... }:
|
|
|
|
{
|
|
services.postgresql = {
|
|
enable = true;
|
|
package = pkgs.postgresql_15;
|
|
ensureDatabases = [ "woodpecker-server" ];
|
|
ensureUsers = [
|
|
{
|
|
name = "woodpecker-server";
|
|
ensureDBOwnership = true;
|
|
}
|
|
];
|
|
};
|
|
}
|