From 16c4e7752437ca4033b36b6fbfef40ff1c55ad03 Mon Sep 17 00:00:00 2001 From: Emile Clark-Boman Date: Wed, 12 Feb 2025 14:47:47 +1000 Subject: [PATCH] home-manager now manages ssh client profiles --- DEVDOC.md | 2 +- homes/me/default.nix | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/DEVDOC.md b/DEVDOC.md index 9c5eb28..35a7e2d 100644 --- a/DEVDOC.md +++ b/DEVDOC.md @@ -16,7 +16,7 @@ them test small things or for giving them files. ## Setup Guide -##### New Colmena Instance +##### Adding a New Server Enable an ssh server on the remote host, then on the local machine set `.ssh/config` to have a profile for your desired host and have a key pair that's authorised diff --git a/homes/me/default.nix b/homes/me/default.nix index 362ebf1..5089d29 100755 --- a/homes/me/default.nix +++ b/homes/me/default.nix @@ -100,6 +100,20 @@ ]; }; + # set ssh profiles + # (all we need is hyrule, everything else is through wishlist) + ssh = { + enable = true; + matchBlocks = { + hyrule = { + hostname = "imbored.dev"; + user = "ae"; + port = 22; + identityFile = "/home/me/.ssh/id_hyrule"; + }; + }; + }; + # I want to use fish as my login shell but it always # goes terrible cause it isn't POSIX compliant, so # instead Bash is my login and it will just exec fish