dots/users/price/conf/ssh/default.nix

34 lines
771 B
Nix
Raw Normal View History

{ lib, ... }:
2024-05-27 13:39:08 -05:00
{
programs.ssh = {
enable = true;
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)
);
2024-05-27 13:39:08 -05:00
};
}