Big commit

This commit is contained in:
2023-12-04 17:10:57 -08:00
parent 44589ddc77
commit 0027566304
29 changed files with 1582 additions and 521 deletions
+5 -5
View File
@@ -38,8 +38,8 @@ in {
config = mkIf postgresEnabled {
fudo = {
acme.host-domains.${hostname} = mkIf (publicNetwork && isPostgresHost) {
${postgresql-hostname}.local-copies = {
acme.host-domains."${hostname}" = mkIf (publicNetwork && isPostgresHost) {
"${postgresql-hostname}".local-copies = {
postgresql = {
user = postgresUser;
dependent-services = [ "postgresql.service" ];
@@ -48,15 +48,15 @@ in {
};
};
secrets.host-secrets.${hostname}.postgres-keytab =
secrets.host-secrets."${hostname}".postgres-keytab =
mkIf (cfg.keytab != null) {
source-file = cfg.keytab;
target-file = "/run/postgresql/postgres.keytab";
user = postgresUser;
};
zones.${zone-name}.aliases.postgresql =
"${domain.postgresql-server}.${domain-name}.";
zones."${zone-name}".aliases.postgresql =
pkgs.lib.getHostFqdn domain.postgresql-server;
postgresql = mkIf isPostgresHost (let
ssl-config = optionalAttrs publicNetwork (let