summary refs log tree commit diff stats
path: root/user/settings/ssh.nix
diff options
context:
space:
mode:
authorAlan Pearce2025-02-25 20:34:20 +0100
committerAlan Pearce2025-02-25 20:34:20 +0100
commit97ee50f052fbc43d0eafb487130d99ee1570a449 (patch)
tree648ed43c53d2827374fa3b7c7abb178a315d9ebb /user/settings/ssh.nix
parent626f20aa5542480cefa4c883a714f788631787e8 (diff)
downloadnixfiles-97ee50f052fbc43d0eafb487130d99ee1570a449.tar.lz
nixfiles-97ee50f052fbc43d0eafb487130d99ee1570a449.tar.zst
nixfiles-97ee50f052fbc43d0eafb487130d99ee1570a449.zip
ssh: make identitiesOnly the default
Diffstat (limited to 'user/settings/ssh.nix')
-rw-r--r--user/settings/ssh.nix7
1 files changed, 2 insertions, 5 deletions
diff --git a/user/settings/ssh.nix b/user/settings/ssh.nix
index b7c46bba..ce3d1c61 100644
--- a/user/settings/ssh.nix
+++ b/user/settings/ssh.nix
@@ -1,8 +1,4 @@
-{ config
-, lib
-, pkgs
-, ...
-}: {
+{ ... }: {
   programs.ssh = {
     enable = true;
     compression = true;
@@ -16,6 +12,7 @@
       CanonicalizeFallbackLocal no
       CanonicalizeMaxDots 0
       CanonicalDomains home.arpa hydra-pinecone.ts.net
+      IdentitiesOnly yes
     '';
     includes = [
       "local.ssh_config"