1
0
Fork 0
forked from Bun/nixos-config

Move ssh alias to ssh program configuration

This commit is contained in:
Bun 2025-05-18 16:53:00 -04:00
parent f00dda831e
commit 1df0e18f7e
2 changed files with 8 additions and 2 deletions

View file

@ -5,8 +5,9 @@
addKeysToAgent = "yes"; addKeysToAgent = "yes";
compression = true; compression = true;
matchBlocks = with lib.hm.dag; { matchBlocks = with lib.hm.dag; {
# Personal servers
nixfox = { nixfox = {
host = "*.nixfox.ca"; match = ''canonical host "*.nixfox.ca"'';
user = config.home.username; user = config.home.username;
}; };
midas = entryAfter [ "nixfox" ] { midas = entryAfter [ "nixfox" ] {
@ -19,6 +20,12 @@
prophet = entryAfter [ "nixfox" ] { prophet = entryAfter [ "nixfox" ] {
hostname = "mx.nixfox.ca"; hostname = "mx.nixfox.ca";
}; };
# Misc
seneca = {
hostname = "matrix.senecapolytechnic.ca";
user = "jhampton1";
};
}; };
}; };
} }

View file

@ -7,6 +7,5 @@
# Shortcuts # Shortcuts
myip = "curl ifconfig.co"; myip = "curl ifconfig.co";
seneca = "ssh jhampton1@matrix.senecapolytechnic.ca";
}; };
} }