about summary refs log tree commit diff stats
path: root/hm/ssh
diff options
context:
space:
mode:
authorSilas Schöffel <sils@sils.li>2025-09-13 16:20:43 +0200
committerSilas Schöffel <sils@sils.li>2025-09-13 16:20:43 +0200
commit837044d4d39046db29b2e6c39bba37ba59d0e7e3 (patch)
treed4465fcbe2d4617ffc7b249503282202ef24bd86 /hm/ssh
parenthm/packages: remove river (diff)
downloadnix-config-837044d4d39046db29b2e6c39bba37ba59d0e7e3.zip
hm/ssh: replace default config with explicit settings HEAD main
(According to home manager option docs)
Diffstat (limited to 'hm/ssh')
-rw-r--r--hm/ssh/default.nix13
1 files changed, 13 insertions, 0 deletions
diff --git a/hm/ssh/default.nix b/hm/ssh/default.nix
index 368830f..d123a6a 100644
--- a/hm/ssh/default.nix
+++ b/hm/ssh/default.nix
@@ -3,6 +3,7 @@
 
   programs.ssh = {
     enable = true;
+    enableDefaultConfig = false;
     matchBlocks = let
       genBox = user: {
         inherit user;
@@ -10,6 +11,18 @@
       };
       username = "u384702";
     in {
+      "*" = {
+        forwardAgent = false;
+        addKeysToAgent = "no";
+        compression = false;
+        serverAliveInterval = 0;
+        serverAliveCountMax = 3;
+        hashKnownHosts = false;
+        userKnownHostsFile = "~/.ssh/known_hosts";
+        controlMaster = "no";
+        controlPath = "~/.ssh/master-%r@%n:%p";
+        controlPersist = "no";
+      };
       "storagebox" = genBox username;
       "storagebox-1" = genBox "${username}-sub1";
     };