Ssh : Add sshmount.

This commit is contained in:
Dmitry Voronin 2024-02-26 00:16:51 +03:00
parent 154fb096a5
commit a18ec08be9
3 changed files with 8 additions and 1 deletions

View file

@ -29,7 +29,6 @@
scanmem
smartmontools
sqlite
sshfs
steam-run
testdisk
tree

View file

@ -1,4 +1,5 @@
{ ... }: {
environment.systemPackages = with pkgs; [ sshfs ];
programs.ssh.extraConfig = ''
Host dasha
HostName 192.168.1.7

View file

@ -0,0 +1,7 @@
# Mount FS over ssh. Just extra config for sshfs.
# Usage: sshmount <REMOTE> <LOCAL>
function sshmount() {
sshfs -o uid=${UID},auto_unmount "${@}"
}
complete -o nospace -F _sshfs sshmount