From b1bbb3ce8635a7863a7cd2d495d9c178c616527c Mon Sep 17 00:00:00 2001 From: soraefir Date: Sun, 3 May 2026 00:51:28 +0200 Subject: [PATCH] SSH fix --- systems/gateway/cfg.nix | 3 +-- systems/gateway/default.nix | 6 +----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/systems/gateway/cfg.nix b/systems/gateway/cfg.nix index da6997e..c784cfa 100644 --- a/systems/gateway/cfg.nix +++ b/systems/gateway/cfg.nix @@ -26,9 +26,8 @@ pubkey = "NFBJvYXZC+bd62jhrKnM7/pugidWhgR6+C5qIiUiq3Q="; server = { enable = true; - peers = ["avalon" "iriy" "valinor"]; forward = [ - [ "ens3" "10.10.1.2" "fd10:10:10::2" 2222 2222 ] # SSH + [ "ens3" "10.10.1.2" "fd10:10:10::2" 22 2222 ] # SSH/GIT [ "ens3" "10.10.1.2" "fd10:10:10::2" 80 80 ] # HTTP [ "ens3" "10.10.1.2" "fd10:10:10::2" 443 443 ] # HTTPS [ "ens3" "10.10.1.2" "fd10:10:10::2" 3979 3979 ] # OTTD diff --git a/systems/gateway/default.nix b/systems/gateway/default.nix index 581c71f..dfa398f 100644 --- a/systems/gateway/default.nix +++ b/systems/gateway/default.nix @@ -20,9 +20,5 @@ in { openssh.authorizedKeys.keys = lib.unique ( lib.concatMap (u: if u ? pubssh then [ u.pubssh ] else []) userList ); - }) activeUsers - // { - root = {openssh.authorizedKeys.keys = [];}; - }; + }) activeUsers; } -