blob: 87fc6eb66f9197cffbf5a73d00ae7e02ded25f6c [file] [log] [blame]
Skyler Grey252927a2022-10-18 22:18:15 +01001{ username, ... }: {
Skyler Grey6aa7c262022-08-20 22:22:03 +01002 config = {
3 services.openssh.enable = true;
4
Skyler Grey79090982022-08-26 08:02:07 +01005 environment.persistence."/nix/persist" = {
6 directories = [
7 "/etc/ssh"
8 ];
Skyler Grey252927a2022-10-18 22:18:15 +01009 users.${username}.directories = [ ".ssh" ];
Skyler Grey79090982022-08-26 08:02:07 +010010 };
11 };
12
13 home = {
14 programs.ssh = {
15 enable = true;
16 matchBlocks = {
17 logerrit = {
18 hostname = "gerrit.libreoffice.org";
19 identityFile = "~/.ssh/id_rsa";
20 port = 29418;
21 user = "Minion3665";
22 };
23 transplace = {
24 hostname = "95.217.87.112";
25 identityFile = "~/.ssh/id_transplace";
26 };
Skyler Greydf85e722022-10-31 00:21:54 +000027 tildetown = {
28 hostname = "tilde.town";
29 user = "minion";
30 identityFile = "~/.ssh/id_tildetown";
31 };
Skyler Greyc25108f2022-10-31 00:33:28 +000032 clicks = {
33 hostname = "clicksminuteper.asuscomm.com";
34 port = 5122;
35 user = "minion";
36 identityFile = "~/.ssh/clicks_rsa";
37 };
38 "sshtron.zachlatta.com" = {
39 hostname = "sshtron.zachlatta.com";
40 extraOptions = {
41 PubkeyAcceptedAlgorithms = "+ssh-rsa";
42 HostkeyAlgorithms = "+ssh-rsa";
43 };
44 };
Skyler Grey79090982022-08-26 08:02:07 +010045 };
46 };
47
48 home.shellAliases = {
49 ssh = "kitty +kitten ssh";
Skyler Grey79090982022-08-26 08:02:07 +010050 };
Skyler Grey6aa7c262022-08-20 22:22:03 +010051 };
52}