1 { pkgs, lib, config, ... }:
8 enable = lib.mkEnableOption "OpenSSH shell utilities";
9 sshConf = lib.mkOption {
11 apply = s: pkgs.writeText "ssh_config" s;
15 OpenSSH's ssh_config content.
19 config = lib.mkIf cfg.enable {
20 nix-shell.buildInputs =
22 ssh = pkgs.writeShellScriptBin "ssh" ''
23 ${pkgs.openssh}/bin/ssh -F ${cfg.sshConf} "$@"