From 924ec30e7075ea7a9dbac569a537d876f9146850 Mon Sep 17 00:00:00 2001 From: Silas Schöffel Date: Thu, 4 Apr 2024 17:06:23 +0200 Subject: refactor: move users/sils dir to hm --- hm/ssh/default.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 hm/ssh/default.nix (limited to 'hm/ssh') diff --git a/hm/ssh/default.nix b/hm/ssh/default.nix new file mode 100644 index 0000000..c7b8e20 --- /dev/null +++ b/hm/ssh/default.nix @@ -0,0 +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