From 9161c77a4764ff404e2c8f79a08bb382e997570a Mon Sep 17 00:00:00 2001
From: Tom Prince <tom.prince@private.storage>
Date: Tue, 28 Sep 2021 11:05:34 -0600
Subject: [PATCH] Use `networking.fqdn` to define `targetHost`, rather than
 constructing it ourselves.

---
 morph/lib/base.nix | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/morph/lib/base.nix b/morph/lib/base.nix
index 377ff80c..f6a9a5f0 100644
--- a/morph/lib/base.nix
+++ b/morph/lib/base.nix
@@ -31,7 +31,7 @@
     # being configured and using variable names complicates a lot of things).
     # Instead, just tell morph how to reach the node here - by using its fully
     # qualified domain name.
-    deployment.targetHost = "${config.networking.hostName}.${config.networking.domain}";
+    deployment.targetHost = config.networking.fqdn;
 
     assertions = [
       # This is a check to save somebody in the future trying to debug why
-- 
GitLab