postgres11 is old as shit

This commit is contained in:
niten 2024-01-05 14:11:15 -08:00
parent 8e08f115c5
commit 12d62caf25
2 changed files with 5 additions and 3 deletions

View File

@ -188,6 +188,7 @@ let
User = cfg.user;
Group = cfg.group;
Type = "oneshot";
Restart = "on-failure";
RuntimeDirectory = "heimdal-hprop";
ExecStartPre = pkgs.writeShellScript "kdc-prepare-hprop-dump.sh"
(concatStringsSep " " [
@ -325,10 +326,11 @@ let
LimitNOFILE = 4096;
User = cfg.user;
Group = cfg.group;
Restart = "always";
RestartSec = "5s";
Restart =
"never"; # Server will retry -- this results in stacking
AmbientCapabilities = "CAP_NET_BIND_SERVICE";
SecureBits = "keep-caps";
ReadWritePaths = [ "${dirOf cfg.kdc.database}" ];
ExecStart = concatStringsSep " " [
"${pkgs.heimdal}/libexec/heimdal/hpropd"
"--database=sqlite:${cfg.kdc.database}"

View File

@ -154,7 +154,7 @@ in {
package = mkOption {
type = package;
description = "Which package to use for Postgresql server.";
default = pkgs.postgresql_11_gssapi;
default = pkgs.postgresql_15_gssapi;
};
ssl-private-key = mkOption {