From 82d56816aeda0cf4e7241773b52f41bb6a111487 Mon Sep 17 00:00:00 2001 From: sils Date: Sat, 6 Jan 2024 14:37:30 +0100 Subject: feat(u/sils/ssh): define ssh-config --- users/sils/ssh/default.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'users') diff --git a/users/sils/ssh/default.nix b/users/sils/ssh/default.nix index 3e255b7..c7b8e20 100644 --- a/users/sils/ssh/default.nix +++ b/users/sils/ssh/default.nix @@ -1,3 +1,17 @@ {...}: { services.ssh-agent.enable = false; + + programs.ssh = { + enable = true; + matchBlocks = let + genBox = user: { + inherit user; + hostname = "${user}.your-storagebox.de"; + }; + username = "u384702"; + in { + "storagebox" = genBox username; + "storagebox-1" = genBox "${username}-sub1"; + }; + }; } -- cgit 1.4.1