diff options
author | Linnnus <[email protected]> | 2024-09-18 22:24:28 +0200 |
---|---|---|
committer | Linnnus <[email protected]> | 2024-09-18 22:25:05 +0200 |
commit | dbef9872b0c3e46dcbb8daa1bc4c08ce7e3ddf9a (patch) | |
tree | 7c83fd6608f0cf8d2165abc55a0ea67a926f8c58 /hosts | |
parent | ba5f153d0d25f14e0b399b7ce72748ee8a213bbd (diff) |
muhammed: Make wraaath-sftp slightly more robust
Diffstat (limited to 'hosts')
-rw-r--r-- | hosts/muhammed/wraaath-sshfs/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hosts/muhammed/wraaath-sshfs/default.nix b/hosts/muhammed/wraaath-sshfs/default.nix index 1f5f793..dcec544 100644 --- a/hosts/muhammed/wraaath-sshfs/default.nix +++ b/hosts/muhammed/wraaath-sshfs/default.nix @@ -21,12 +21,17 @@ # Should be automatically deleted upon unmount. mkdir -p /Volumes/Wraaath + # Get rid of potential leftover mount from graceless exit. + umount /Volumes/Wraaath || true + diskutil umount force /Volumes/Wraaath || true + # Start a MacFUSE daemon. # Will run in background mode, as foreground mode broke everything for some reason. exec ${pkgs.sshfs}/bin/sshfs [email protected]:/ /Volumes/Wraaath \ -p 2222 \ -o volname=Wraath \ -o reconnect \ + -o kill_on_unmount \ -o allow_other \ -o password_stdin <${config.age.secrets.wraaath-sftp-password.path} ''; |