core/pkgs/by-name/op/openssh/copyid.nix
2024-06-30 09:16:52 +01:00

14 lines
373 B
Nix

{ runCommand, openssh }:
runCommand "ssh-copy-id-${openssh.version}"
{
meta = openssh.meta // {
description = "A tool to copy SSH public keys to a remote machine";
priority = (openssh.meta.priority or 0) - 1;
};
}
''
install -Dm 755 {${openssh},$out}/bin/ssh-copy-id
install -Dm 644 {${openssh},$out}/share/man/man1/ssh-copy-id.1.gz
''