nixos_config/home/modules/programs/ssh.nix
2026-03-10 21:50:51 +01:00

71 lines
1.8 KiB
Nix

{ ... }:
{
programs.ssh = {
enable = true;
enableDefaultConfig = false;
matchBlocks = {
"*" = {
forwardAgent = false;
addKeysToAgent = "no";
compression = false;
serverAliveInterval = 0;
serverAliveCountMax = 3;
hashKnownHosts = false;
userKnownHostsFile = "~/.ssh/known_hosts";
controlMaster = "no";
controlPath = "~/.ssh/master-%r@%n:%p";
controlPersist = "no";
};
"alisceon-core" = {
hostname = "core.alisceon.com";
user = "opc";
};
"blogbox-2" = {
hostname = "10.1.0.11";
proxyJump = "alisceon-core";
user = "opc";
};
"blogbox-1" = {
hostname = "10.1.0.247";
proxyJump = "alisceon-core";
user = "opc";
};
"filurbox" = {
hostname = "oci.malice.zone";
user = "opc";
};
"dnspi" = {
hostname = "10.40.0.2";
user = "pi";
};
"nuc".hostname = "nuc.home.the.malice.zone";
"tsla-exporter-bridge" = {
hostname = "alma02.lab.the.malice.zone";
user = "root";
};
"tsla-runner-boi" = {
hostname = "alma03.lab.the.malice.zone";
user = "root";
};
"tsla-nixos".hostname = "tesla-nixos.lab.the.malice.zone";
"tsla-backups" = {
hostname = "backups.lab.the.malice.zone";
user = "root";
};
"tsla-books" = {
hostname = "books.lab.the.malice.zone";
user = "root";
};
"tower" = {
forwardAgent = true;
addKeysToAgent = "yes";
hostname = "tower.home.the.malice.zone";
};
"electra" = {
forwardAgent = true;
addKeysToAgent = "yes";
hostname = "electra.home.the.malice.zone";
};
};
};
}