summaryrefslogtreecommitdiff
path: root/hosts/muhammed
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/muhammed')
-rw-r--r--hosts/muhammed/wraaath-sshfs/default.nix5
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}
'';