aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nixops/modules/databases/postgresql.nix4
-rw-r--r--overlays/databases/mysql/default.nix5
-rw-r--r--overlays/databases/postgresql/default.nix3
3 files changed, 10 insertions, 2 deletions
diff --git a/nixops/modules/databases/postgresql.nix b/nixops/modules/databases/postgresql.nix
index 0afce70..b113e9f 100644
--- a/nixops/modules/databases/postgresql.nix
+++ b/nixops/modules/databases/postgresql.nix
@@ -14,6 +14,10 @@ in {
14 }; 14 };
15 15
16 config = lib.mkIf cfg.enable { 16 config = lib.mkIf cfg.enable {
17 nixpkgs.overlays = [ (self: super: rec {
18 postgresql = self.postgresql_11_custom;
19 }) ];
20
17 networking.firewall.allowedTCPPorts = [ 5432 ]; 21 networking.firewall.allowedTCPPorts = [ 5432 ];
18 22
19 security.acme.certs."postgresql" = config.services.myCertificates.certConfig // { 23 security.acme.certs."postgresql" = config.services.myCertificates.certConfig // {
diff --git a/overlays/databases/mysql/default.nix b/overlays/databases/mysql/default.nix
index 24bad1b..5e40284 100644
--- a/overlays/databases/mysql/default.nix
+++ b/overlays/databases/mysql/default.nix
@@ -3,5 +3,10 @@ self: super: rec {
3 mariadbPAM = super.mariadb.overrideAttrs(old: { 3 mariadbPAM = super.mariadb.overrideAttrs(old: {
4 cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ]; 4 cmakeFlags = old.cmakeFlags ++ [ "-DWITH_AUTHENTICATION_PAM=ON" ];
5 buildInputs = old.buildInputs ++ [ self.pam ]; 5 buildInputs = old.buildInputs ++ [ self.pam ];
6 }) // (with super.mariadb; {
7 inherit client;
8 servier = super.mariadb;
9 inherit connector-c;
10 inherit galera;
6 }); 11 });
7} 12}
diff --git a/overlays/databases/postgresql/default.nix b/overlays/databases/postgresql/default.nix
index 8dec7ff..8d1405e 100644
--- a/overlays/databases/postgresql/default.nix
+++ b/overlays/databases/postgresql/default.nix
@@ -1,6 +1,5 @@
1self: super: rec { 1self: super: rec {
2 postgresql = postgresql_11; 2 postgresql_11_custom = super.postgresql_11.overrideAttrs(old: {
3 postgresql_11 = super.postgresql_11.overrideAttrs(old: {
4 # datadir in /var/lib/postgresql is named after psqlSchema 3 # datadir in /var/lib/postgresql is named after psqlSchema
5 passthru = old.passthru // { psqlSchema = "11.0"; }; 4 passthru = old.passthru // { psqlSchema = "11.0"; };
6 configureFlags = old.configureFlags ++ [ "--with-pam" ]; 5 configureFlags = old.configureFlags ++ [ "--with-pam" ];