nixos-config/modules/home/programs/terminal/ssh/default.nix

31 lines
696 B
Nix

{ config, lib, ... }:
{
programs.ssh = {
enable = true;
addKeysToAgent = "yes";
compression = true;
matchBlocks = with lib.hm.dag; {
# Personal servers
nixfox = {
match = ''canonical host "*.nixfox.ca"'';
user = config.home.username;
};
midas = entryAfter [ "nixfox" ] {
hostname = "sv.nixfox.ca";
};
kitty = entryAfter [ "nixfox" ] {
hostname = "sv.nixfox.ca";
port = 2222;
};
prophet = entryAfter [ "nixfox" ] {
hostname = "mx.nixfox.ca";
};
# Misc
seneca = {
hostname = "matrix.senecapolytechnic.ca";
user = "jhampton1";
};
};
};
}