chore(deployment): use ips instead of fqdn

This commit is contained in:
Julien Malka 2024-10-13 12:34:10 +02:00
parent 1c8f6134f3
commit d811ab8ac1
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -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;