From 161246c575b53e5f04c52e531191abcac7169907 Mon Sep 17 00:00:00 2001 From: Drew Haven Date: Sat, 23 May 2026 22:06:53 -0700 Subject: [PATCH] [archive] Attempts to fix the archive mount being stopped before the system sleeps. --- home-manager/features/mounts/mcp-archive.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/home-manager/features/mounts/mcp-archive.nix b/home-manager/features/mounts/mcp-archive.nix index 7167c78..94436f1 100644 --- a/home-manager/features/mounts/mcp-archive.nix +++ b/home-manager/features/mounts/mcp-archive.nix @@ -6,6 +6,8 @@ Unit = { Description = "SSHFS mount for remote archive"; After = [ "network-online.target" ]; + Before = [ "sleep.target" ]; + StopPropagatedFrom = [ "sleep.target" ]; }; Service = { @@ -22,7 +24,7 @@ drew@mcp:/tank/archive/drew \ %h/archive ''; - ExecStop = "/run/wrappers/bin/fusermount -u %h/mnt/archive"; + ExecStop = "/run/wrappers/bin/fusermount -u %h/archive"; Restart = "on-failure"; RestartSec = "10s"; };