From e35fc32701064e77a24ae2c942b30df7ff9531ca Mon Sep 17 00:00:00 2001 From: xbazzi Date: Thu, 10 Jul 2025 19:52:33 -0600 Subject: [PATCH] ssh config additions --- home/zsh.nix | 2 -- system/network.nix | 4 ++-- system/packages.nix | 10 +++------- system/ssh.nix | 33 +++++++++++++++++++++++++++++++++ 4 files changed, 38 insertions(+), 11 deletions(-) diff --git a/home/zsh.nix b/home/zsh.nix index 6cb4bdb..2e99007 100755 --- a/home/zsh.nix +++ b/home/zsh.nix @@ -35,8 +35,6 @@ mkdir -p "roles/$1/handlers" touch "roles/$1/tasks/main.yml" touch "roles/$1/defaults/main.yml" - touch "roles/$1/templates/main.yml" - touch "roles/$1/handlers/main.yml" } ''; history.size = 10000; diff --git a/system/network.nix b/system/network.nix index dcc9bbd..147c9e2 100755 --- a/system/network.nix +++ b/system/network.nix @@ -11,7 +11,7 @@ networking = { hostName = "nixos"; wireless.enable = false; - interfaces.enp6s0d1 = { + interfaces.enp6s0f1 = { ipv4.addresses = [{ address = "10.29.90.110"; prefixLength = 22; @@ -23,7 +23,7 @@ defaultGateway = { address = "10.29.90.1"; - interface = "enp6s0d1"; + interface = "enp6s0f0"; }; hosts = { diff --git a/system/packages.nix b/system/packages.nix index 93f7a2c..74343ab 100755 --- a/system/packages.nix +++ b/system/packages.nix @@ -32,11 +32,12 @@ dig prismlauncher inetutils + ansible-builder + ansible-lint hollywood cmatrix nmap #intellephense - firefoxpwa brave ffmpeg variety @@ -44,6 +45,7 @@ eza linuxPackages_latest.perf minicom + wireshark ]; programs.nix-ld.enable = true; @@ -51,12 +53,6 @@ # Install noisetorch. programs.noisetorch.enable = true; - # Install firefox. - programs.firefox = { - enable = true; - package = pkgs.firefox; - nativeMessagingHosts.packages = [ pkgs.firefoxpwa ]; - }; # Allow unfree packages nixpkgs.config.allowUnfree = true; diff --git a/system/ssh.nix b/system/ssh.nix index e2f58ab..2083d25 100644 --- a/system/ssh.nix +++ b/system/ssh.nix @@ -2,6 +2,24 @@ { programs.ssh.extraConfig = '' + Host fw-mgmt + HostName fw-mgmt + ForwardAgent yes + User xbazzi + Port 22 + PubkeyAuthentication yes + IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes + + Host db1 + HostName db1 + ForwardAgent yes + User xbazzi + Port 22 + PubkeyAuthentication yes + IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes + Host prod1 HostName prod1 ForwardAgent yes @@ -9,28 +27,43 @@ User xbazzi PubkeyAuthentication yes IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes + + Host prod3 + HostName prod3 + ForwardAgent yes + Port 22 + User xbazzi + PubkeyAuthentication yes + IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes Host nas-mgmt HostName nas-mgmt ForwardAgent yes User xbazzi IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes Host nas HostName nas + ForwardAgent yes User xbazzi IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes Host school HostName school ForwardAgent yes User xbazzi IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes Host ext1-mgmt HostName ext1-mgmt ForwardAgent yes User xbazzi IdentityFile ~/.ssh/lan_id_ed25519 + IdentitiesOnly yes ''; } \ No newline at end of file