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"
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;

View File

@ -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 = {

View File

@ -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;

View File

@ -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
'';
}