mirror of
https://github.com/nix-community/home-manager.git
synced 2025-11-08 19:46:05 +01:00
ssh: provide code snippet in enableDefaultConfig description
This commit is contained in:
parent
a3d90c996f
commit
77a71380c3
1 changed files with 15 additions and 0 deletions
|
|
@ -559,6 +559,21 @@ in
|
||||||
description = ''
|
description = ''
|
||||||
Whether to enable or not the old default config values.
|
Whether to enable or not the old default config values.
|
||||||
This option will become deprecated in the future.
|
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";
|
||||||
|
};
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue