mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
Add programs.ssh.extraConfig option
This commit is contained in:
parent
d860f9f78e
commit
c3931d2e42
1 changed files with 9 additions and 0 deletions
|
@ -35,6 +35,14 @@ in
|
||||||
Pulls in X11 dependency.
|
Pulls in X11 dependency.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraConfig = mkOption {
|
||||||
|
default = "";
|
||||||
|
description = ''
|
||||||
|
Extra configuration text appended to <filename>ssh_config</filename>.
|
||||||
|
See the ssh_config(5) man page for help.
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -51,6 +59,7 @@ in
|
||||||
XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
|
XAuthLocation ${pkgs.xorg.xauth}/bin/xauth
|
||||||
''}
|
''}
|
||||||
ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}
|
ForwardX11 ${if cfg.forwardX11 then "yes" else "no"}
|
||||||
|
${cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
target = "ssh/ssh_config";
|
target = "ssh/ssh_config";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue