I tried to write a systemd service configuration that simply calls a ssh command by setting ExecStart
in /etc/nixos/configuration.nix
ExecStart = "${pkgs.openssh}/bin/ssh .....(other parameters)."
service starting condition were set like:
after = [ "network-online.target" "multi-user.target"];
but the serivce failed to start, system log shows systemd
Failed to locate executable ssh: No such file or directory.
What is the standard way of using binary from another nix package?