home/desktop: refactor ssh config to use the new ssh.nix module
This commit is contained in:
parent
03291fdd05
commit
21606b8db9
1 changed files with 0 additions and 15 deletions
|
|
@ -75,25 +75,10 @@
|
||||||
|
|
||||||
programs.ssh = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableDefaultConfig = false; # deprecated
|
|
||||||
package = pkgs.openssh;
|
|
||||||
# TODO: common config for desktop as well
|
# TODO: common config for desktop as well
|
||||||
# ssh host config
|
# ssh host config
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
|
|
||||||
# default, gets placed last by home-manager
|
|
||||||
"*" = {
|
|
||||||
serverAliveInterval = 10;
|
|
||||||
serverAliveCountMax = 2; # 2 strikes and you're out
|
|
||||||
forwardAgent = false;
|
|
||||||
addKeysToAgent = "no";
|
|
||||||
compression = false;
|
|
||||||
hashKnownHosts = false;
|
|
||||||
userKnownHostsFile = "~/.ssh/known_hosts";
|
|
||||||
controlMaster = "no";
|
|
||||||
controlPath = "~/.ssh/master-%r@%n:%p";
|
|
||||||
controlPersist = "no";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
// (import "${inputs.mysecrets}/ssh_hosts.nix").privateHosts;
|
// (import "${inputs.mysecrets}/ssh_hosts.nix").privateHosts;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue