ssh.nix
1 { 2 programs.ssh = { 3 enable = true; 4 # includes = []; 5 enableDefaultConfig = false; 6 # extraOptionOverrides = {}; 7 8 matchBlocks = { 9 rt-be88u-7a50 = { 10 user = "admin"; 11 host = "rt-be88u-7a50"; 12 addKeysToAgent = "yes"; 13 hostname = "rt-be88u-7a50.taila4d019.ts.net"; 14 setEnv.TERM = "xterm-256color"; 15 }; 16 17 halowlink1-3c5b = { 18 user = "root"; 19 host = "halowlink1-3c5b"; 20 addKeysToAgent = "yes"; 21 hostname = "10.0.0.134"; 22 setEnv.TERM = "xterm-256color"; 23 }; 24 25 halowlink2-75cf = { 26 user = "root"; 27 host = "halowlink1-75cf"; 28 addKeysToAgent = "yes"; 29 hostname = "halowlink2-75cf.taila4d019.ts.net"; 30 setEnv.TERM = "xterm-256color"; 31 }; 32 33 halowlink2-6c7f = { 34 user = "root"; 35 host = "halowlink1-6c7f"; 36 addKeysToAgent = "yes"; 37 hostname = "halowlink2-6c7f.taila4d019.ts.net"; 38 setEnv.TERM = "xterm-256color"; 39 }; 40 41 rutx11 = { 42 user = "root"; 43 host = "RUTX11"; 44 addKeysToAgent = "yes"; 45 hostname = "rutx11.taila4d019.ts.net"; 46 setEnv.TERM = "xterm-256color"; 47 }; 48 49 rut241 = { 50 user = "root"; 51 host = "RUT241"; 52 addKeysToAgent = "yes"; 53 hostname = "10.0.0.4"; 54 setEnv.TERM = "xterm-256color"; 55 }; 56 57 hp-elitebook-820-g2 = { 58 user = "mfarabi"; 59 host = "hp-elitebook-820-g2"; 60 addKeysToAgent = "yes"; 61 hostname = "hp-elitebook-820-g2.taila4d019.ts.net"; 62 setEnv.TERM = "xterm-kitty"; 63 }; 64 65 macbook-5-5 = { 66 host = "guix"; 67 user = "mfarabi"; 68 addKeysToAgent = "yes"; 69 hostname = "macbook-5-5.taila4d019.ts.net"; 70 setEnv.TERM = "xterm-256color"; 71 }; 72 73 macbook-11-4 = { 74 user = "mfarabi"; 75 host = "macbook-11-4"; 76 addKeysToAgent = "yes"; 77 hostname = "macbook-11-4.taila4d019.ts.net"; 78 setEnv.TERM = "xterm-kitty"; 79 }; 80 81 macos = { 82 host = "macos"; 83 user = "mfarabi"; 84 addKeysToAgent = "yes"; 85 hostname = "macos.taila4d019.ts.net"; 86 setEnv.TERM = "xterm-kitty"; 87 }; 88 89 msi-gs65 = { 90 user = "mfarabi"; 91 host = "msi-gs65"; 92 addKeysToAgent = "yes"; 93 hostname = "msi-gs65.taila4d019.ts.net"; 94 setEnv.TERM = "xterm-256color"; 95 }; 96 97 msi-gs76 = { 98 host = "msi-gs76"; 99 user = "mfarabi"; 100 addKeysToAgent = "yes"; 101 hostname = "msi-gs76.taila4d019.ts.net"; 102 setEnv.TERM = "xterm-kitty"; 103 }; 104 105 framework-16 = { 106 user = "mfarabi"; 107 host = "framework-16"; 108 addKeysToAgent = "yes"; 109 hostname = "framework-16.taila4d019.ts.net"; 110 setEnv.TERM = "xterm-256color"; 111 }; 112 113 framework-desktop = { 114 user = "mfarabi"; 115 host = "framework-desktop"; 116 addKeysToAgent = "yes"; 117 hostname = "framework-desktop.taila4d019.ts.net"; 118 setEnv.TERM = "xterm-kitty"; 119 }; 120 121 nixos-wsl = { 122 user = "mfarabi"; 123 host = "nixos-wsl"; 124 addKeysToAgent = "yes"; 125 hostname = "nixos-wsl.taila4d019.ts.net"; 126 setEnv.TERM = "xterm-kitty"; 127 }; 128 129 nixos-utm = { 130 user = "mfarabi"; 131 host = "nixos-utm"; 132 addKeysToAgent = "yes"; 133 hostname = "nixos-utm.comet-locrian.ts.net"; 134 setEnv.TERM = "xterm-kitty"; 135 }; 136 137 surface-pro-7 = { 138 user = "mfarabi"; 139 host = "surface-pro-7"; 140 addKeysToAgent = "yes"; 141 hostname = "surface-pro-7.taila4d019.ts.net"; 142 setEnv.TERM = "xterm-kitty"; 143 }; 144 145 rpi4 = { 146 host = "rpi4"; 147 user = "mfarabi"; 148 addKeysToAgent = "yes"; 149 hostname = "rpi4.taila4d019.ts.net"; 150 setEnv.TERM = "xterm-256color"; 151 }; 152 153 rpi5-ubuntu = { 154 host = "rpi5-ubuntu"; 155 user = "mfarabi"; 156 addKeysToAgent = "yes"; 157 hostname = "rpi5-ubuntu.taila4d019.ts.net"; 158 setEnv.TERM = "xterm-256color"; 159 }; 160 161 rpi5-4 = { 162 host = "rpi5-4"; 163 user = "mfarabi"; 164 addKeysToAgent = "yes"; 165 hostname = "rpi5-4.taila4d019.ts.net"; 166 setEnv.TERM = "xterm-256color"; 167 }; 168 169 rpi5-16 = { 170 host = "rpi5-16"; 171 user = "mfarabi"; 172 checkHostIP = true; 173 addKeysToAgent = "yes"; 174 hostname = "rpi5-16.taila4d019.ts.net"; 175 setEnv.TERM = "xterm-256color"; 176 }; 177 178 rpi5-8 = { 179 host = "rpi5-8"; 180 user = "mfarabi"; 181 addKeysToAgent = "yes"; 182 hostname = "rpi5-8.taila4d019.ts.net"; 183 setEnv.TERM = "xterm-256color"; 184 }; 185 186 rpi02w = { 187 host = "rpi02w"; 188 user = "root"; 189 addKeysToAgent = "yes"; 190 hostname = "rpi02w.taila4d019.ts.net"; 191 setEnv.TERM = "xterm-256color"; 192 }; 193 194 rpi02w-art = { 195 host = "rpi02w-art"; 196 user = "root"; 197 addKeysToAgent = "yes"; 198 hostname = "rpi02w-art.taila4d019.ts.net"; 199 setEnv.TERM = "xterm-256color"; 200 }; 201 202 rpi02w-ttc-swy = { 203 host = "rpi02w-ttc-swy"; 204 user = "root"; 205 addKeysToAgent = "yes"; 206 hostname = "rpi02w-ttc-swy.taila4d019.ts.net"; 207 setEnv.TERM = "xterm-256color"; 208 }; 209 210 ubuntu = { 211 host = "ubuntu"; 212 user = "mfarabi"; 213 addKeysToAgent = "yes"; 214 hostname = "ubuntu.taila4d019.ts.net"; 215 setEnv.TERM = "xterm-256color"; 216 }; 217 218 ubuntu-s-1vcpu-1gb-50gb-mon1-01 = { 219 user = "ubuntu"; 220 addKeysToAgent = "yes"; 221 host = "ubuntu-s-1vcpu-1gb-50gb-mon1-01"; 222 hostname = "ubuntu-s-1vcpu-1gb-50gb-mon1-01.taila4d019.ts.net"; 223 setEnv.TERM = "xterm-256color"; 224 }; 225 226 ubuntu-s-1vcpu-512mb-10gb-tor1-01 = { 227 user = "mfarabi"; 228 addKeysToAgent = "yes"; 229 host = "ubuntu-s-1vcpu-512mb-10gb-tor1-01.taila4d019.ts.net"; 230 hostname = "ubuntu-s-1vcpu-512mb-10gb-tor1-01"; 231 setEnv.TERM = "xterm-256color"; 232 233 # addressFamily = null; # "any" | "inet" | "inet6" 234 # certificateFile = [ ./.file ]; 235 236 # compression = false; 237 # controlmaster = null; # "yes" | "no" | "ask" | "auto" | "autoask" 238 # controlPath = null; # path to control socket used for connection sharing 239 # controlPersist = "10am"; # whether control socket should remain open in background 240 241 # identityFile = []; 242 # identityAgent = []; 243 # identitiesOnly = false; 244 245 # hashKnownHosts = null; 246 # userKnownHostsFile = "~/.ssh/known_hosts"; 247 248 # serverAliveInterval = 5; 249 # serverAliveCountMax = 5; 250 251 # proxyJump = ""; 252 # proxyCommand = ""; 253 254 # match = '' 255 # host canonical 256 # host exec "ping -c1 -q 192.168.17.1" 257 # ''; 258 259 # dynamicForwards = [ 260 # { 261 # "name" = { 262 # address = "localhost"; 263 # port = 8080; 264 # }; 265 # } 266 # ]; 267 268 # remoteForwards = [ 269 # { 270 # bind = { 271 # address = "10.0.0.13"; 272 # port = 8080; 273 # }; 274 # host = { 275 # address = "10.0.0.13"; 276 # port = 80; 277 # }; 278 # } 279 # ]; 280 281 # localForwards = [ 282 # { 283 # bind = { 284 # address = "10.0.0.13"; 285 # port = "8080"; 286 # }; 287 # host = { 288 # address = "10.0.0.13"; 289 # port = "80"; 290 # }; 291 # } 292 # ]; 293 }; 294 }; 295 }; 296 }