nixos-config/system/starlight/postgres.nix

19 lines
323 B
Nix

{ config, pkgs, ... }:
{
services.postgresql = {
enable = true;
package = pkgs.postgresql_16;
enableJIT = true;
extraPlugins = with config.services.postgresql.package.pkgs; [ postgis ];
ensureUsers = [
{
name = "artemis";
ensureClauses.superuser = true;
}
];
};
}