Ssh : Add sshmount.
This commit is contained in:
parent
154fb096a5
commit
a18ec08be9
|
@ -29,7 +29,6 @@
|
||||||
scanmem
|
scanmem
|
||||||
smartmontools
|
smartmontools
|
||||||
sqlite
|
sqlite
|
||||||
sshfs
|
|
||||||
steam-run
|
steam-run
|
||||||
testdisk
|
testdisk
|
||||||
tree
|
tree
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
{ ... }: {
|
{ ... }: {
|
||||||
|
environment.systemPackages = with pkgs; [ sshfs ];
|
||||||
programs.ssh.extraConfig = ''
|
programs.ssh.extraConfig = ''
|
||||||
Host dasha
|
Host dasha
|
||||||
HostName 192.168.1.7
|
HostName 192.168.1.7
|
||||||
|
|
7
.config/linux/system/module/common/bash/module/Ssh.sh
Normal file
7
.config/linux/system/module/common/bash/module/Ssh.sh
Normal 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
|
Reference in a new issue