Commit 935826292832
Changed files (2)
home
common
shell
lib
home/common/shell/openssh.nix
@@ -86,17 +86,6 @@
controlPersist = "360";
};
};
- # Disable IdentityAgent for home network hosts (prevents yubikey prompts in TRAMP)
- "*.home" = {
- extraOptions = {
- IdentityAgent = "none";
- };
- };
- "*.vpn" = {
- extraOptions = {
- IdentityAgent = "none";
- };
- };
"*.redhat.com" = {
user = "vdemeest";
};
lib/functions.nix
@@ -155,8 +155,10 @@ let
else
x;
forwardAgent = true;
- # identityFile = "~/.ssh/kyushu";
- # identityAgent = "empty";
+ # Disable IdentityAgent for .home hosts (prevents yubikey prompts in TRAMP)
+ extraOptions = lib.optionalAttrs (lib.strings.hasSuffix ".home" x) {
+ IdentityAgent = "none";
+ };
};
})
(