Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 1 | { username, ... }: { |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 2 | config = { |
| 3 | services.openssh.enable = true; |
| 4 | |
Skyler Grey | 7909098 | 2022-08-26 08:02:07 +0100 | [diff] [blame] | 5 | environment.persistence."/nix/persist" = { |
| 6 | directories = [ |
| 7 | "/etc/ssh" |
| 8 | ]; |
Skyler Grey | 252927a | 2022-10-18 22:18:15 +0100 | [diff] [blame] | 9 | users.${username}.directories = [ ".ssh" ]; |
Skyler Grey | 7909098 | 2022-08-26 08:02:07 +0100 | [diff] [blame] | 10 | }; |
| 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 Grey | df85e72 | 2022-10-31 00:21:54 +0000 | [diff] [blame] | 27 | tildetown = { |
| 28 | hostname = "tilde.town"; |
| 29 | user = "minion"; |
| 30 | identityFile = "~/.ssh/id_tildetown"; |
| 31 | }; |
Skyler Grey | c25108f | 2022-10-31 00:33:28 +0000 | [diff] [blame] | 32 | clicks = { |
Skyler Grey | ded28de | 2023-03-07 13:12:18 +0000 | [diff] [blame] | 33 | hostname = "192.168.89.74"; |
| 34 | proxyJump = "ssh.coded.codes"; |
Skyler Grey | c25108f | 2022-10-31 00:33:28 +0000 | [diff] [blame] | 35 | user = "minion"; |
Skyler Grey | ded28de | 2023-03-07 13:12:18 +0000 | [diff] [blame] | 36 | identityFile = "~/.ssh/id_rsa"; |
Skyler Grey | c25108f | 2022-10-31 00:33:28 +0000 | [diff] [blame] | 37 | }; |
| 38 | "sshtron.zachlatta.com" = { |
| 39 | hostname = "sshtron.zachlatta.com"; |
| 40 | extraOptions = { |
| 41 | PubkeyAcceptedAlgorithms = "+ssh-rsa"; |
| 42 | HostkeyAlgorithms = "+ssh-rsa"; |
| 43 | }; |
| 44 | }; |
Skyler Grey | 7909098 | 2022-08-26 08:02:07 +0100 | [diff] [blame] | 45 | }; |
| 46 | }; |
Skyler Grey | 29c15f1 | 2023-03-26 11:22:41 +0000 | [diff] [blame] | 47 | |
| 48 | home.shellAliases = { |
| 49 | ssh = "kitty +kitten ssh"; |
| 50 | }; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 51 | }; |
| 52 | } |