2022-04-18 14:01:00 -05:00
|
|
|
{ lib, ... }:
|
|
|
|
|
|
|
|
|
|
{
|
|
|
|
|
programs.ssh = {
|
|
|
|
|
enable = true;
|
|
|
|
|
serverAliveInterval = 60;
|
|
|
|
|
|
2022-09-08 10:24:53 -05:00
|
|
|
includes = ["config.local"];
|
|
|
|
|
|
2022-04-18 14:01:00 -05:00
|
|
|
matchBlocks =
|
|
|
|
|
let
|
|
|
|
|
nas = { user = "admin"; };
|
|
|
|
|
owned = { user = "greg"; };
|
|
|
|
|
in {
|
2022-11-10 08:22:42 -06:00
|
|
|
inherit nas;
|
|
|
|
|
|
|
|
|
|
"*" = {
|
|
|
|
|
dynamicForwards = [ {
|
|
|
|
|
port = 10240;
|
|
|
|
|
} ];
|
|
|
|
|
};
|
|
|
|
|
|
2022-04-18 14:01:00 -05:00
|
|
|
"10.42.1.4" = lib.hm.dag.entryBefore ["10.42.*"] nas;
|
|
|
|
|
"nas.thehellings.lan" = nas;
|
|
|
|
|
"nas.greg-hellings.gmail.com.beta.tailscale.net" = nas;
|
|
|
|
|
chronicles = nas;
|
|
|
|
|
"chronicles.thehellings.lan" = lib.hm.dag.entryBefore [ "*.thehellings.lan"] nas;
|
|
|
|
|
|
|
|
|
|
gh = { user = "git"; hostname = "github.com"; };
|
2023-12-14 00:43:00 -06:00
|
|
|
"src" = { user = "forgejo"; hostname = "src.thehellings.com"; };
|
2022-04-18 14:01:00 -05:00
|
|
|
|
|
|
|
|
"*.thehellings.lan" = owned;
|
|
|
|
|
"10.42.*" = owned;
|
|
|
|
|
|
|
|
|
|
"host.crosswire.org crosswire" = {
|
|
|
|
|
hostname = "host.crosswire.org";
|
|
|
|
|
user = "ghellings";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
fedpeople = {
|
|
|
|
|
hostname = "fedorapeople.org";
|
|
|
|
|
user = "greghellings";
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
"src.fedoraproject.org pkgs.fedoraproject.org" = {
|
|
|
|
|
user = "greghellings";
|
|
|
|
|
};
|
2022-05-04 13:52:38 -05:00
|
|
|
|
|
|
|
|
"127.*".extraOptions = {
|
|
|
|
|
PubkeyAcceptedAlgorithms = "+ssh-rsa";
|
|
|
|
|
HostkeyAlgorithms = "+ssh-rsa";
|
|
|
|
|
};
|
2022-04-18 14:01:00 -05:00
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
}
|