From d824f991d4a1752fe2c4206390a040a7f4ae2655 Mon Sep 17 00:00:00 2001 From: Nickolaj Jepsen Date: Mon, 24 Mar 2025 09:49:44 +0100 Subject: [PATCH] chore: update ssh config --- modules/base/ssh.nix | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/modules/base/ssh.nix b/modules/base/ssh.nix index aca5a74..3025591 100644 --- a/modules/base/ssh.nix +++ b/modules/base/ssh.nix @@ -34,16 +34,30 @@ in { user = "server"; }; # Work hostnames definded in ./networking.nix - "*.ao" = { + "bastion.ao" = { user = "nij"; identityFile = "${config.age.secrets.ssh-key-ao.path}"; }; - "dev.ao".proxyJump = lib.mkDefault "bastion.ao"; - "scw.ao".proxyJump = lib.mkDefault "dev.ao"; - "clickhouse.ao".user = "ubuntu"; + "clickhouse.ao" = { + user = "ubuntu"; + proxyJump = lib.mkDefault "bastion.ao"; + identityFile = "${config.age.secrets.ssh-key-ao.path}"; + }; "flex.ao" = { + user = "nij"; hostname = "192.168.2.5"; proxyJump = "bastion.ao"; + identityFile = "${config.age.secrets.ssh-key-ao.path}"; + }; + "scw.ao" = { + user = "nij"; + proxyJump = lib.mkDefault "dev.ao"; + identityFile = "${config.age.secrets.ssh-key-ao.path}"; + }; + "dev.ao" = { + user = "nij"; + proxyJump = lib.mkDefault "bastion.ao"; + identityFile = "${config.age.secrets.ssh-key-ao.path}"; }; }; };