dots/users/price/conf/ssh/default.nix
Price Hiller 53cf4d054d
Some checks failed
Check Formatting of Files / Check-Formatting (push) Has been cancelled
feat(nix/hm/price): add asgard ssh host
2024-06-14 22:19:07 -05:00

39 lines
910 B
Nix

{ lib, ... }:
{
programs.ssh = {
enable = true;
matchBlocks =
rec {
luna = {
hostname = "luna.hosts.orion-technologies.io";
user = "price";
port = 2200;
};
"luna.hosts.orion-technologies.io" = luna;
asgard = {
hostname = "asgard-eternal.com";
user = "asgard";
};
"asgard-eternal.com" = asgard;
}
# 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)
);
};
}