diff --git a/nixos/base.nix b/nixos/base.nix index f818278..50bcb22 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -141,6 +141,11 @@ programs.ssh = { enableAskPassword = false; forwardX11 = true; + extraConfig = '' + Host nixarr + Hostname 192.168.1.165 + ForwardAgent yes + ''; }; sops = { @@ -220,6 +225,7 @@ services.openssh = { enable = true; settings = { + AllowAgentForwarding = true; PermitRootLogin = "no"; PasswordAuthentication = false; KbdInteractiveAuthentication = false;