Skyler Grey | 7909098 | 2022-08-26 08:02:07 +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 | ]; |
| 9 | users.${username}.directories = [".ssh"]; |
| 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 | }; |
| 27 | }; |
| 28 | }; |
| 29 | |
| 30 | home.shellAliases = { |
| 31 | ssh = "kitty +kitten ssh"; |
Skyler Grey | 7909098 | 2022-08-26 08:02:07 +0100 | [diff] [blame] | 32 | }; |
Skyler Grey | 6aa7c26 | 2022-08-20 22:22:03 +0100 | [diff] [blame] | 33 | }; |
| 34 | } |