1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

ssh: provide code snippet in enableDefaultConfig description

This commit is contained in:
Aguirre Matteo 2025-08-29 12:52:05 -03:00 committed by Austin Horstman
parent a3d90c996f
commit 77a71380c3

View file

@ -559,6 +559,21 @@ in
description = ''
Whether to enable or not the old default config values.
This option will become deprecated in the future.
For an equivalent, copy and paste the following
code snippet in your config:
programs.ssh.matchBlocks."*" = {
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";
};
'';
};
};