From 00312a3ffb7fc1385914e06c6b7676674f6d2464 Mon Sep 17 00:00:00 2001 From: asyncnomi Date: Sat, 5 Jul 2025 18:53:44 +0200 Subject: [PATCH] use colmena name instead of networking.hostName --- profiles/vogon/guest.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/profiles/vogon/guest.nix b/profiles/vogon/guest.nix index 53e9d54..2cf695d 100644 --- a/profiles/vogon/guest.nix +++ b/profiles/vogon/guest.nix @@ -1,8 +1,9 @@ -{ config, lib, network, ... }: +{ config, lib, network, name, ... }: let inherit (lib) mkOption types; cfg = config.vogon; + node = network.infra.nodes.${name}; in { options.vogon = { @@ -50,8 +51,8 @@ in }; }; services.openssh.listenAddresses = [ - { addr = network.infra.nodes.${config.networking.hostName}.ipv4; port = 22; } - { addr = network.infra.nodes.${config.networking.hostName}.ipv6; port = 22; } + { addr = node.ipv4; port = 22; } + { addr = node.ipv6; port = 22; } ] ++ map (octet: { addr = "193.54.193.${toString octet}"; port = 22; }) cfg.networking.ssh-octets; }; } \ No newline at end of file