nix machine / user configurations
at terra 704 B view raw
1{ 2 programs.ssh = { 3 enable = true; 4 enableDefaultConfig = false; 5 matchBlocks."*" = { 6 forwardAgent = false; 7 serverAliveInterval = 0; 8 serverAliveCountMax = 3; 9 compression = true; 10 hashKnownHosts = true; 11 addKeysToAgent = "yes"; 12 userKnownHostsFile = "~/.ssh/known_hosts"; 13 controlMaster = "no"; 14 controlPath = "~/.ssh/master-%r@%n:%p"; 15 controlPersist = "no"; 16 }; 17 # Only needed for darcs hub 18 # extraConfig = '' 19 # Host hub.darcs.net 20 # ControlMaster no 21 # ForwardAgent no 22 # ForwardX11 no 23 # Ciphers +aes256-cbc 24 # MACs +hmac-sha1 25 # ''; 26 }; 27 services.ssh-agent.enable = true; 28}