Big commit
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user