summary refs log tree commit diff stats
path: root/users
diff options
context:
space:
mode:
authorsils <sils@sils.li>2024-01-06 14:37:30 +0100
committersils <sils@sils.li>2024-01-06 14:37:30 +0100
commit82d56816aeda0cf4e7241773b52f41bb6a111487 (patch)
treeb4c5a7bedf5b64da644164bb2708dcf1a185b5e0 /users
parentfix(sys/services/greetd): restart greetd on failure (diff)
downloadnix-config-82d56816aeda0cf4e7241773b52f41bb6a111487.tar.gz
nix-config-82d56816aeda0cf4e7241773b52f41bb6a111487.zip
feat(u/sils/ssh): define ssh-config
Diffstat (limited to 'users')
-rw-r--r--users/sils/ssh/default.nix14
1 files changed, 14 insertions, 0 deletions
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";
+    };
+  };
 }