blob: 49e2dd194a17bd6181bc6a5103a1bf917b078b44 [file] [log] [blame]
Skyler Grey79090982022-08-26 08:02:07 +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 ];
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 Grey79090982022-08-26 08:02:07 +010032 };
Skyler Grey6aa7c262022-08-20 22:22:03 +010033 };
34}