feat(nix/hm/price): add UTSA ssh servers

This commit is contained in:
Price Hiller 2024-06-02 12:53:18 -05:00
parent 1e4c0daac8
commit e9a86cba4a
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB

View File

@ -1,14 +1,33 @@
{ ... }:
{ lib, ... }:
{
programs.ssh = {
enable = true;
matchBlocks = rec {
luna = {
hostname = "luna.hosts.orion-technologies.io";
user = "price";
port = 2200;
};
"luna.hosts.orion-technologies.io" = luna;
};
matchBlocks =
rec {
luna = {
hostname = "luna.hosts.orion-technologies.io";
user = "price";
port = 2200;
};
"luna.hosts.orion-technologies.io" = luna;
}
# NOTE: UTSA Hosts behind VPN server
// builtins.listToAttrs (
builtins.map (
num:
let
hostname = "fox${
if (num > 0 && num < 10) then "0${builtins.toString num}" else builtins.toString num
}.cs.utsarr.net";
in
{
name = hostname;
value = {
user = "zfp106";
inherit hostname;
};
}
) (lib.range 1 4)
);
};
}