-
-
Save notgne2/2e86e0969eee867ef899512a93f4cc87 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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