use colmena name instead of networking.hostName
This commit is contained in:
parent
873479d893
commit
00312a3ffb
1 changed files with 4 additions and 3 deletions
|
@ -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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue