Update more postgres'

This commit is contained in:
Sandro - 2023-09-27 00:01:22 +02:00
parent f59acf228b
commit 260ddbe7a8
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
7 changed files with 10 additions and 18 deletions

View File

@ -362,11 +362,11 @@
}, },
"nixos": { "nixos": {
"locked": { "locked": {
"lastModified": 1695761384, "lastModified": 1695763855,
"narHash": "sha256-68xqUTcwmrzterRKkI7vY7JiLwlsP6fz4ECwR6k8Nkk=", "narHash": "sha256-VGu/Qh02WCzXsZCBTj/+7Z8xDAOFup0nzZmn68a1PxI=",
"owner": "SuperSandro2000", "owner": "SuperSandro2000",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "b369ef44c6d7ecf323099cbdb59d4a7baaeff5e9", "rev": "01d71dc737b6d0434d78ac78b4d698ab14193585",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -44,7 +44,7 @@
}; };
postgresql = { postgresql = {
package = pkgs.postgresql_15; package = pkgs.postgresql_16;
settings.log_min_duration_statement = 50; settings.log_min_duration_statement = 50;
upgrade.stopServices = [ "buzzrelay" ]; upgrade.stopServices = [ "buzzrelay" ];
ensureUsers = [ { ensureUsers = [ {

View File

@ -278,7 +278,7 @@ in
portunus.addToHosts = true; portunus.addToHosts = true;
postgresql = { postgresql = {
package = pkgs.postgresql_15; package = pkgs.postgresql_16;
upgrade.stopServices = [ "hydra-evaluator" "hydra-queue-runner" "hydra-server" ]; upgrade.stopServices = [ "hydra-evaluator" "hydra-queue-runner" "hydra-server" ];
}; };

View File

@ -151,8 +151,8 @@
"DATABASE \"${config.services.mastodon.database.name}\"" = "ALL PRIVILEGES"; "DATABASE \"${config.services.mastodon.database.name}\"" = "ALL PRIVILEGES";
}; };
}]; }];
package = pkgs.postgresql_15; package = pkgs.postgresql_16;
upgrade.stopServices = [ "mastodon-sidekiq" "mastodon-streaming" "mastodon-web" ]; upgrade.stopServices = [ "mastodon-sidekiq-all" "mastodon-streaming" "mastodon-web" ];
}; };
}; };

View File

@ -106,7 +106,7 @@
LC_COLLATE = "C" LC_COLLATE = "C"
LC_CTYPE = "C"; LC_CTYPE = "C";
''; '';
package = pkgs.postgresql_15; package = pkgs.postgresql_16;
upgrade.stopServices = [ "matrix-synapse" ]; upgrade.stopServices = [ "matrix-synapse" ];
}; };
}; };

View File

@ -194,20 +194,12 @@ in
postgresql = { postgresql = {
enable = true; enable = true;
# authentication = lib.mkForce ''
# # TYPE DATABASE USER ADDRESS METHOD
# local all all trust
# host all all 127.0.0.1/32 trust
# host all all 10.233.2.1/32 trust
# host all all ::1/128 trust
# '';
# enableTCPIP = true;
ensureDatabases = [ cfg.database.name ]; ensureDatabases = [ cfg.database.name ];
ensureUsers = [{ ensureUsers = [{
name = cfg.database.user; name = cfg.database.user;
ensurePermissions = { "DATABASE ${cfg.database.name}" = "ALL PRIVILEGES"; }; ensurePermissions = { "DATABASE ${cfg.database.name}" = "ALL PRIVILEGES"; };
}]; }];
package = pkgs.postgresql_15; package = pkgs.postgresql_16;
upgrade.stopServices = [ "httpd" "phpfpm-mediawiki" ]; upgrade.stopServices = [ "httpd" "phpfpm-mediawiki" ];
}; };
}; };

View File

@ -80,7 +80,7 @@
portunus.addToHosts = true; portunus.addToHosts = true;
postgresql = { postgresql = {
package = pkgs.postgresql_15; package = pkgs.postgresql_16;
upgrade.stopServices = [ "mobilizon" ]; upgrade.stopServices = [ "mobilizon" ];
}; };
}; };