Skip to content

Instantly share code, notes, and snippets.

@notgne2
Created July 1, 2020 05:38
Show Gist options
  • Save notgne2/2e86e0969eee867ef899512a93f4cc87 to your computer and use it in GitHub Desktop.
Save notgne2/2e86e0969eee867ef899512a93f4cc87 to your computer and use it in GitHub Desktop.
with import {
overlays = [
(self: super: {
postgresql_12 = super.postgresql_12.overrideAttrs (attrs: {
patches = attrs.patches ++ [ ./include/pthread_sigmask.patch ];
});
})
];
};
let
containers = {
pt = {
config = {
services.postgresql = rec {
package = pkgs.postgresql_12;
dataDir = "/data/psql/pthread112";
extraPlugins = with import ./include/plugin.nix { pg = package; };
[
timescaledb
pg_partman
];
extraConfig = "
shared_preload_libraries = 'timescaledb'
";
};
};
};
};
in
import ./include/service.nix {
config = containers;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment