1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-28 09:28:32 +02:00

ssh: add control persist option

This commit is contained in:
Robert Helgesson 2017-07-29 17:47:18 +02:00
parent 3778a69fbe
commit be432c8654
No known key found for this signature in database
GPG Key ID: C3DB11069E65DC86

View File

@ -144,6 +144,15 @@ in
'';
};
controlPersist = mkOption {
type = types.str;
default = "no";
example = "10m";
description = ''
Whether control socket should remain open in the background.
'';
};
matchBlocks = mkOption {
type = types.listOf matchBlockModule;
default = [];
@ -158,6 +167,7 @@ in
ForwardAgent ${yn cfg.forwardAgent}
ControlMaster ${cfg.controlMaster}
ControlPath ${cfg.controlPath}
ControlPersist ${cfg.controlPersist}
${concatStringsSep "\n\n" (map matchBlockStr cfg.matchBlocks)}
'';