nixos/ssh: Allow user to configure the package that provides ssh/sshd

This commit is contained in:
William A. Kennington III
2014-09-11 22:07:39 -07:00
parent 686a139f29
commit bab5efd237
2 changed files with 12 additions and 5 deletions
+8 -1
View File
@@ -59,6 +59,13 @@ in
'';
};
package = mkOption {
default = pkgs.openssh;
description = ''
The package used for the openssh client and daemon.
'';
};
};
};
@@ -92,7 +99,7 @@ in
wantedBy = [ "default.target" ];
serviceConfig =
{ ExecStartPre = "${pkgs.coreutils}/bin/rm -f %t/ssh-agent";
ExecStart = "${pkgs.openssh}/bin/ssh-agent -a %t/ssh-agent";
ExecStart = "${cfg.package}/bin/ssh-agent -a %t/ssh-agent";
StandardOutput = "null";
Type = "forking";
Restart = "on-failure";