Commit 044d1dc780ff

Vincent Demeester <vincent@sbr.pm>
2026-01-07 09:16:02
refactor(ssh): Remove hardcoded kyushu identity file
- Allow SSH to use default key selection instead of hardcoding - Improve configuration portability across different machines - Remove host-specific identity from shared config Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent ba09f62
Changed files (2)
home
common
lib
home/common/shell/openssh.nix
@@ -97,13 +97,13 @@
         extraOptions = {
           StrictHostKeyChecking = "no";
           UserKnownHostsFile = "/dev/null";
-          identityFile = "~/.ssh/kyushu";
+          # identityFile = "~/.ssh/kyushu";
           # identityAgent = "empty";
         };
       };
       "10.100.0.*" = {
         forwardAgent = true;
-        identityFile = "~/.ssh/kyushu";
+        # identityFile = "~/.ssh/kyushu";
         # identityAgent = "empty";
       };
     }
lib/functions.nix
@@ -155,8 +155,8 @@ let
               else
                 x;
             forwardAgent = true;
-            identityFile = "~/.ssh/kyushu";
-            identityAgent = "empty";
+            # identityFile = "~/.ssh/kyushu";
+            # identityAgent = "empty";
           };
         })
         (