[archive] Attempts to fix the archive mount being stopped before the system sleeps.

This commit is contained in:
2026-05-26 19:21:50 -07:00
parent 518ad143e0
commit 81a79d77c8

View File

@@ -8,6 +8,7 @@
${pkgs.sshfs}/bin/sshfs \ ${pkgs.sshfs}/bin/sshfs \
-f \ -f \
-o reconnect \ -o reconnect \
-o compression=yes
-o ServerAliveInterval=15 \ -o ServerAliveInterval=15 \
-o ServerAliveCountMax=3 \ -o ServerAliveCountMax=3 \
-o IdentityFile=%h/.ssh/id_ed25519 \ -o IdentityFile=%h/.ssh/id_ed25519 \
@@ -15,7 +16,7 @@
drew@mcp:/tank/archive/drew \ drew@mcp:/tank/archive/drew \
%h/archive %h/archive
''; '';
unmountArchive = "/run/wrappers/bin/fusermount -u %h/mnt/archive"; unmountArchive = "/run/wrappers/bin/fusermount -u %h/archive";
in in
{ {
# Mounts the archive when the system is online. # Mounts the archive when the system is online.