From 00aa4f1984cbe96308243a1681041d08228997b6 Mon Sep 17 00:00:00 2001 From: xbazzi Date: Wed, 5 Feb 2025 17:08:46 -0700 Subject: [PATCH] remove networkmanager and add ssh client config --- system/network.nix | 2 +- system/ssh.nix | 31 +++++++++++++++++++++++++++++-- 2 files changed, 30 insertions(+), 3 deletions(-) diff --git a/system/network.nix b/system/network.nix index aa73ef9..de023db 100755 --- a/system/network.nix +++ b/system/network.nix @@ -1,7 +1,7 @@ { inputs, config, pkgs, ... }: { # Enable networking - networking.networkmanager.enable = true; + # networking.networkmanager.enable = true; systemd.services."NetworkManager-wait-online" = { diff --git a/system/ssh.nix b/system/ssh.nix index 1e47b86..8473275 100644 --- a/system/ssh.nix +++ b/system/ssh.nix @@ -2,8 +2,35 @@ { programs.ssh.extraConfig = '' + Host prod1 + HostName prod1 + ForwardAgent yes + Port 22222 + User xbazzi + PubkeyAuthentication yes + IdentityFile ~/.ssh/lan_id_ed25519 + + Host nas-mgmt + HostName nas-mgmt + ForwardAgent yes + User xbazzi + IdentityFile ~/.ssh/lan_id_ed25519 + + Host nas + HostName nas + User xbazzi + IdentityFile ~/.ssh/lan_id_ed25519 + Host school - HostName school - IdentityFile ~/.ssh/lan_ed25519 + HostName school + ForwardAgent yes + User xbazzi + IdentityFile ~/.ssh/lan_id_ed25519 + + Host ext1-mgmt + HostName ext1-mgmt + ForwardAgent yes + User xbazzi + IdentityFile ~/.ssh/lan_id_ed25519 ''; } \ No newline at end of file