aboutsummaryrefslogtreecommitdiff
path: root/pkgs/yoshi.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/yoshi.nix')
-rw-r--r--pkgs/yoshi.nix52
1 files changed, 0 insertions, 52 deletions
diff --git a/pkgs/yoshi.nix b/pkgs/yoshi.nix
deleted file mode 100644
index 9e261df..0000000
--- a/pkgs/yoshi.nix
+++ /dev/null
@@ -1,52 +0,0 @@
-{
- pkgs,
- inputs,
- ...
-}: let
- yossh =
- pkgs.writeText "yossh.lua"
- # lua
- ''
- yoshi = dofile'${inputs.yoshi-lua}/yoshi.lua'
-
- local function isHome()
- local _, _, code = os.execute("nc -z -w1 192.168.50.2 2222")
- return code == 0
- end
-
- yoshi.hosts["ganymede"] = function()
- if isHome() then
- return yoshi.ssh{
- HostName = "192.168.50.2",
- DynamicForward = 9090,
- Port = 2222
- }
- else
- return yoshi.ssh{
- HostName = "williamsfam.us.com",
- DynamicForward = 9090
- }
- end
- end
-
- yoshi.hosts["io"] = function()
- if isHome() then
- return yoshi.ssh{
- HostName = "192.168.50.3",
- User = "admin",
- }
- else
- return yoshi.ssh{
- HostName = "192.168.50.3",
- User = "admin",
- ProxyJump = "collin@ganymede",
- }
- end
- end
-
- yoshi.run(arg)
- '';
-in
- pkgs.writeShellScriptBin "yossh" ''
- exec ${pkgs.lua}/bin/lua ${yossh} "$@"
- ''