diff --git a/modules/hm/rclone-mount.nix b/modules/hm/rclone-mount.nix index 2840ac3..b34fe79 100644 --- a/modules/hm/rclone-mount.nix +++ b/modules/hm/rclone-mount.nix @@ -30,6 +30,7 @@ let cfg = config.rclone-mount; in { Install.WantedBy = [ "default.target" ]; Service = { Type = "simple"; + Environment = [ "PATH=${ lib.makeBinPath [ pkgs.rclone pkgs.coreutils pkgs.fuse ]}:/run/wrappers/bin/:$PATH" ]; ExecStartPre = "${pkgs.coreutils}/bin/mkdir -p ${path}"; ExecStart = "${pkgs.rclone}/bin/rclone --config '${cfg.configPath}' mount ${name}:/ ${path} -vv --vfs-cache-mode=writes --s3-upload-concurrency 32 --s3-chunk-size 128000"; Restart = "on-failure";