From 5c833870575e658bf00f1f3422bbc492c3497623 Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Mon, 19 Dec 2022 12:24:58 -0500 Subject: [PATCH] Add ssh config repo --- configs/home.nogui.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/configs/home.nogui.nix b/configs/home.nogui.nix index 2d4d62f..5ac6cb7 100644 --- a/configs/home.nogui.nix +++ b/configs/home.nogui.nix @@ -87,6 +87,36 @@ programs.neovim = import programs/neovim.nix pkgs; programs.gpg.enable = true; programs.jq.enable = true; + programs.ssh = { + enable = true; + compression = true; + controlMaster = "auto"; + controlPath = "~/.ssh/sockets/socket-%r@%h:%p"; + controlPersist = "1m"; + forwardAgent = true; + matchBlocks = { + foss-dashboard.hostname = "foss-dashboard.rit.edu"; + foss-dashboard.proxyCommand = "ssh glados -W %h:%p"; + foss-dashboard.user = "emi"; + + glados.hostname = "129.21.22.196"; + glados.user = "tts1848"; + + muscaria.hostname = "69.61.2.204"; + muscaria.user = "emi"; + + oak.hostname = "oak.corviform.gay"; + oak.port = 57452; + oak.user = "emi"; + + serenity.hostname = "serenity.ist.rit.edu"; + serenity.user = "tts1848"; + serenity.proxyCommand = "ssh glados -W %h:%p"; + + sol.hostname = "sol.is.geeky.gay"; + sol.user = "emi"; + }; + }; services.gpg-agent = { enable = true; maxCacheTtl = 180; # Seconds