ssh config additions

This commit is contained in:
xbazzi 2025-07-10 19:52:33 -06:00
parent 905bd594cc
commit e35fc32701
4 changed files with 38 additions and 11 deletions

View File

@ -35,8 +35,6 @@
mkdir -p "roles/$1/handlers" mkdir -p "roles/$1/handlers"
touch "roles/$1/tasks/main.yml" touch "roles/$1/tasks/main.yml"
touch "roles/$1/defaults/main.yml" touch "roles/$1/defaults/main.yml"
touch "roles/$1/templates/main.yml"
touch "roles/$1/handlers/main.yml"
} }
''; '';
history.size = 10000; history.size = 10000;

View File

@ -11,7 +11,7 @@
networking = { networking = {
hostName = "nixos"; hostName = "nixos";
wireless.enable = false; wireless.enable = false;
interfaces.enp6s0d1 = { interfaces.enp6s0f1 = {
ipv4.addresses = [{ ipv4.addresses = [{
address = "10.29.90.110"; address = "10.29.90.110";
prefixLength = 22; prefixLength = 22;
@ -23,7 +23,7 @@
defaultGateway = { defaultGateway = {
address = "10.29.90.1"; address = "10.29.90.1";
interface = "enp6s0d1"; interface = "enp6s0f0";
}; };
hosts = { hosts = {

View File

@ -32,11 +32,12 @@
dig dig
prismlauncher prismlauncher
inetutils inetutils
ansible-builder
ansible-lint
hollywood hollywood
cmatrix cmatrix
nmap nmap
#intellephense #intellephense
firefoxpwa
brave brave
ffmpeg ffmpeg
variety variety
@ -44,6 +45,7 @@
eza eza
linuxPackages_latest.perf linuxPackages_latest.perf
minicom minicom
wireshark
]; ];
programs.nix-ld.enable = true; programs.nix-ld.enable = true;
@ -51,12 +53,6 @@
# Install noisetorch. # Install noisetorch.
programs.noisetorch.enable = true; programs.noisetorch.enable = true;
# Install firefox.
programs.firefox = {
enable = true;
package = pkgs.firefox;
nativeMessagingHosts.packages = [ pkgs.firefoxpwa ];
};
# Allow unfree packages # Allow unfree packages
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;

View File

@ -2,6 +2,24 @@
{ {
programs.ssh.extraConfig = '' 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 Host prod1
HostName prod1 HostName prod1
ForwardAgent yes ForwardAgent yes
@ -9,28 +27,43 @@
User xbazzi User xbazzi
PubkeyAuthentication yes PubkeyAuthentication yes
IdentityFile ~/.ssh/lan_id_ed25519 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 Host nas-mgmt
HostName nas-mgmt HostName nas-mgmt
ForwardAgent yes ForwardAgent yes
User xbazzi User xbazzi
IdentityFile ~/.ssh/lan_id_ed25519 IdentityFile ~/.ssh/lan_id_ed25519
IdentitiesOnly yes
Host nas Host nas
HostName nas HostName nas
ForwardAgent yes
User xbazzi User xbazzi
IdentityFile ~/.ssh/lan_id_ed25519 IdentityFile ~/.ssh/lan_id_ed25519
IdentitiesOnly yes
Host school Host school
HostName school HostName school
ForwardAgent yes ForwardAgent yes
User xbazzi User xbazzi
IdentityFile ~/.ssh/lan_id_ed25519 IdentityFile ~/.ssh/lan_id_ed25519
IdentitiesOnly yes
Host ext1-mgmt Host ext1-mgmt
HostName ext1-mgmt HostName ext1-mgmt
ForwardAgent yes ForwardAgent yes
User xbazzi User xbazzi
IdentityFile ~/.ssh/lan_id_ed25519 IdentityFile ~/.ssh/lan_id_ed25519
IdentitiesOnly yes
''; '';
} }