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 = {
|
programs.ssh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
compression = true;
|
compression = true;
|
||||||
|
|
||||||
|
controlMaster = "auto";
|
||||||
|
controlPath = "\${XDG_RUNTIME_DIR}/ssh/%r@%n:%p";
|
||||||
|
controlPersist = "1m";
|
||||||
|
|
||||||
matchBlocks = {
|
matchBlocks = {
|
||||||
"*.nyantec.com".user = "mvs";
|
"*.nyantec.com".user = "mvs";
|
||||||
"solitary.social" = {
|
"solitary.social" = {
|
||||||
|
@ -314,6 +319,10 @@ in {
|
||||||
|
|
||||||
services.ssh-agent.enable = true;
|
services.ssh-agent.enable = true;
|
||||||
|
|
||||||
|
systemd.user.tmpfiles.rules = [
|
||||||
|
"d %t/ssh 700"
|
||||||
|
];
|
||||||
|
|
||||||
xdg.userDirs =
|
xdg.userDirs =
|
||||||
let
|
let
|
||||||
home = config.home.homeDirectory;
|
home = config.home.homeDirectory;
|
||||||
|
|
Reference in a new issue