From a30d5331eecfe74eb6320237537c96b1771a858e Mon Sep 17 00:00:00 2001 From: Racci Date: Tue, 31 Dec 2024 18:44:10 +1100 Subject: [PATCH] fix: missing binary in activation script --- home-manager.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/home-manager.nix b/home-manager.nix index 92cfcdb..9a69227 100644 --- a/home-manager.nix +++ b/home-manager.nix @@ -19,17 +19,18 @@ let ; mount = "${pkgs.util-linux}/bin/mount"; + fusermount = "${lib.getExe' pkgs.fuse "fusermount"}" unmountScript = mountPoint: tries: sleep: '' triesLeft=${toString tries} if ${mount} | grep -F ${mountPoint}' ' >/dev/null; then while (( triesLeft > 0 )); do - if fusermount -u ${mountPoint}; then + if ${fusermount} -u ${mountPoint}; then break else (( triesLeft-- )) if (( triesLeft == 0 )); then echo "Couldn't perform regular unmount of ${mountPoint}. Attempting lazy unmount." - fusermount -uz ${mountPoint} + ${fusermount} -uz ${mountPoint} else sleep ${toString sleep} fi