Skip to content

Instantly share code, notes, and snippets.

@thoughtpolice
Created April 2, 2018 20:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thoughtpolice/64130af0cce9b137d0522a3d63af05f1 to your computer and use it in GitHub Desktop.
Save thoughtpolice/64130af0cce9b137d0522a3d63af05f1 to your computer and use it in GitHub Desktop.
postgresql plugins
let
mkPlug = p: p.override { postgresql = config.services.postgresql.package; };
in {
enable = true;
package = pgsql;
dataDir = "/data/pgsql";
extraConfig = "shared_preload_libraries = 'timescaledb'";
extraPlugins = with pkgs; map mkPlug
[ postgis
timescaledb
cstore_fdw
pg_hll
pg_cron
pg_topn
];
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment