Many packages depend on postgresql but are not tied to custom version
};
config = lib.mkIf cfg.enable {
+ nixpkgs.overlays = [ (self: super: rec {
+ postgresql = self.postgresql_11_custom;
+ }) ];
+
networking.firewall.allowedTCPPorts = [ 5432 ];
security.acme.certs."postgresql" = config.services.myCertificates.certConfig // {
mariadbPAM = super.mariadb.overrideAttrs(old: {
cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
buildInputs = old.buildInputs ++ [ self.pam ];
+ }) // (with super.mariadb; {
+ inherit client;
+ servier = super.mariadb;
+ inherit connector-c;
+ inherit galera;
});
}
self: super: rec {
- postgresql = postgresql_11;
- postgresql_11 = super.postgresql_11.overrideAttrs(old: {
+ postgresql_11_custom = super.postgresql_11.overrideAttrs(old: {
# datadir in /var/lib/postgresql is named after psqlSchema
passthru = old.passthru // { psqlSchema = "11.0"; };
configureFlags = old.configureFlags ++ [ "--with-pam" ];