From ccb1b5b719bc3cd9605c1797383f33f648bb563d Mon Sep 17 00:00:00 2001 From: RGBCube Date: Mon, 10 Mar 2025 22:31:40 +0300 Subject: [PATCH] fix: set the ssh port correctly --- modules/common/ssh/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/common/ssh/default.nix b/modules/common/ssh/default.nix index cbfca51..5b3d9e2 100644 --- a/modules/common/ssh/default.nix +++ b/modules/common/ssh/default.nix @@ -6,13 +6,15 @@ hosts = self.nixosConfigurations |> filterAttrs (_: value: value.config.services.openssh.enable) |> mapAttrs (_: value: { - hostname = value.config.networking.ipv4.address; - user = value.config.users.users |> attrNames |> remove "root" |> remove "backup" |> head; + + hostname = value.config.networking.ipv4.address; + + port = head value.config.services.openssh.ports; }); in { secrets.sshConfig = {