Enable SSH connection multiplexing
This commit is contained in:
parent
d990056b6f
commit
3455a2d6b0
9
home.nix
9
home.nix
|
@ -228,6 +228,11 @@ in {
|
|||
programs.ssh = {
|
||||
enable = true;
|
||||
compression = true;
|
||||
|
||||
controlMaster = "auto";
|
||||
controlPath = "\${XDG_RUNTIME_DIR}/ssh/%r@%n:%p";
|
||||
controlPersist = "1m";
|
||||
|
||||
matchBlocks = {
|
||||
"*.nyantec.com".user = "mvs";
|
||||
"solitary.social" = {
|
||||
|
@ -314,6 +319,10 @@ in {
|
|||
|
||||
services.ssh-agent.enable = true;
|
||||
|
||||
systemd.user.tmpfiles.rules = [
|
||||
"d %t/ssh 700"
|
||||
];
|
||||
|
||||
xdg.userDirs =
|
||||
let
|
||||
home = config.home.homeDirectory;
|
||||
|
|
Reference in a new issue