From c3931d2e4273c9bf5a610ccd664f56bd05e584cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sun, 25 Aug 2013 21:54:21 +0200 Subject: [PATCH] Add programs.ssh.extraConfig option --- modules/programs/ssh.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/modules/programs/ssh.nix b/modules/programs/ssh.nix index f28de02bb4eb..5ec32376b60e 100644 --- a/modules/programs/ssh.nix +++ b/modules/programs/ssh.nix @@ -35,6 +35,14 @@ in Pulls in X11 dependency. ''; }; + + extraConfig = mkOption { + default = ""; + description = '' + Extra configuration text appended to ssh_config. + See the ssh_config(5) man page for help. + ''; + }; }; }; @@ -51,6 +59,7 @@ in XAuthLocation ${pkgs.xorg.xauth}/bin/xauth ''} ForwardX11 ${if cfg.forwardX11 then "yes" else "no"} + ${cfg.extraConfig} ''; target = "ssh/ssh_config"; }