From 814d85f3dde9f018fb1264fa868fe192a3e526bf Mon Sep 17 00:00:00 2001 From: niten Date: Fri, 3 Mar 2023 16:06:48 -0800 Subject: [PATCH] getDomainPostgresqlServer should take a domain --- lib.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib.nix b/lib.nix index 488ce36..5ce67c2 100644 --- a/lib.nix +++ b/lib.nix @@ -28,9 +28,8 @@ let getHostIps = hostname: filter (o: o != null) [ (getHostIpv4 hostname) (getHostIpv6 hostname) ]; - getDomainPostgresqlServer = hostname: - let domain-name = entities.hosts."${hostname}".domain; - in getHostFqdn entities.domains."${domain-name}".postgresql-server; + getDomainPostgresqlServer = domain: + getHostFqdn entities.domains."${domain}".postgresql-server; in { inherit getHostSite getHostDomain getHostRealm getHostFqdn getHostIpv4