feat(nix/hm/price): add UTSA ssh servers
This commit is contained in:
parent
1e4c0daac8
commit
e9a86cba4a
@ -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)
|
||||
);
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user