fixed default ssh block warning

This commit is contained in:
John Lancaster
2025-12-07 10:27:31 -06:00
parent 1cc9ace520
commit 6cd0bf2f93

View File

@@ -2,16 +2,29 @@
{
programs.ssh = lib.mkIf config.ssh {
enable = true;
enableDefaultConfig = false;
extraConfig = ''
SetEnv TERM="xterm-256color"
${lib.optionalString config._1password "IdentityAgent ~/.1password/agent.sock"}
'';
matchBlocks = lib.mkMerge [
{
"*" = {
user = "john";
forwardAgent = true;
serverAliveInterval = 60;
serverAliveCountMax = 2;
};
}
(lib.mkIf (config.profile == "personal") {
"ad-nix" = {
hostname = "192.168.1.201";
user = "appdaemon";
};
"appdaemon" = {
hostname = "192.168.1.242";
user = "appdaemon";
};
"docs" = {
hostname = "192.168.1.110";
user = "root";
@@ -28,6 +41,10 @@
hostname = "192.168.1.107";
user = "root";
};
"platform-caddy" = {
hostname = "192.168.1.65";
user = "root";
};
"pve5070" = {
hostname = "192.168.1.130";
user = "root";
@@ -36,6 +53,10 @@
hostname = "192.168.1.36";
user = "john";
};
"z2m-nix" = {
hostname = "192.168.1.129";
user = "root";
};
})
(lib.mkIf (config.profile == "work") {
"ubuntu-nvidia" = {