From d811ab8ac16ee84d8cfd65caea87b62b6ac0106f Mon Sep 17 00:00:00 2001
From: Julien Malka <julien@malka.sh>
Date: Sun, 13 Oct 2024 12:34:10 +0200
Subject: [PATCH] chore(deployment): use ips instead of fqdn

---
 modules/deployment/default.nix | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/modules/deployment/default.nix b/modules/deployment/default.nix
index 18422ae..5cd5706 100644
--- a/modules/deployment/default.nix
+++ b/modules/deployment/default.nix
@@ -2,7 +2,6 @@
 with lib;
 let
   cfg = config.luj.deployment;
-  hostname = config.networking.hostName;
 in
 {
 
@@ -11,7 +10,7 @@ in
   config = mkIf cfg.enable {
 
     deployment = {
-      targetHost = lib.mkDefault "${hostname}.${config.machine.meta.tld}";
+      targetHost = lib.mkDefault config.machine.meta.ips.vpn.ipv4;
       targetPort = lib.mkDefault 45;
       targetUser = lib.mkDefault "root";
       allowLocalDeployment = lib.mkDefault true;