1 { pkgs, lib, config, ... }:
2 let cfg = config.openssh;
7 enable = lib.mkEnableOption "OpenSSH shell utilities";
8 sshConf = lib.mkOption {
10 apply = s: pkgs.writeText "ssh_config" s;
14 OpenSSH's ssh_config content.
18 config = lib.mkIf cfg.enable {
19 nix-shell.buildInputs =
20 let ssh = pkgs.writeShellScriptBin "ssh" ''
21 ${pkgs.openssh}/bin/ssh -F ${cfg.sshConf} "$@"