From e321e032040af4fbeaca14010d97e4fd71c17fc8 Mon Sep 17 00:00:00 2001 From: Gabriel Arazas Date: Mon, 2 Oct 2023 14:15:37 +0800 Subject: [PATCH] users/foo-dogsquared: add SSH config for self-hosted setups --- .../foo-dogsquared/config/ssh/self-hosted | 14 ++++++++++++++ users/home-manager/foo-dogsquared/modules/keys.nix | 8 ++++++++ 2 files changed, 22 insertions(+) create mode 100644 users/home-manager/foo-dogsquared/config/ssh/self-hosted diff --git a/users/home-manager/foo-dogsquared/config/ssh/self-hosted b/users/home-manager/foo-dogsquared/config/ssh/self-hosted new file mode 100644 index 00000000..a9a06a77 --- /dev/null +++ b/users/home-manager/foo-dogsquared/config/ssh/self-hosted @@ -0,0 +1,14 @@ +Host plover.foodogsquared.one + IdentityFile ~/.ssh/work + User plover + +Host woodcock.foodogsquared.one + IdentityFile ~/.ssh/woodcock.foodogsquared.one + User woodcock + +Host quail.foodogsquared.one + IdentityFile ~/.ssh/quail.foodogsquared.one + User quail + +Host code.foodogsquared.one + IdentityFile ~/.ssh/code.foodogsquared.one-foodogsquared diff --git a/users/home-manager/foo-dogsquared/modules/keys.nix b/users/home-manager/foo-dogsquared/modules/keys.nix index 81d15196..560f67b4 100644 --- a/users/home-manager/foo-dogsquared/modules/keys.nix +++ b/users/home-manager/foo-dogsquared/modules/keys.nix @@ -14,6 +14,14 @@ ''; }; + # Make all of the initial SSH identities configuration here. It should assume + # I have other SSH identities configuration that are not committed here for + # whatever reason. + home.file.".ssh/config.d" = { + source = ../config/ssh; + recursive = true; + }; + # My GPG client. It has to make sure the keys are not generated and has to be # backed up somewhere. #