From 15e3f11fd8687b0c5156239ab082ec1efbc4fd0e Mon Sep 17 00:00:00 2001 From: spy4x <2spy4x@gmail.com> Date: Wed, 13 Mar 2024 16:25:31 +0800 Subject: [PATCH] feat(nix): add cache for Rclone+GoogleDrive mount --- configuration.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.nix b/configuration.nix index ae923c5..1d43e6d 100644 --- a/configuration.nix +++ b/configuration.nix @@ -156,7 +156,7 @@ in serviceConfig = { Type = "simple"; ExecStartPre = "${curBin}/mkdir -p ${gdrivePath}"; - ExecStart = "${pkgs.rclone}/bin/rclone mount gdrive: ${gdrivePath}"; + ExecStart = "${pkgs.rclone}/bin/rclone mount gdrive: ${gdrivePath} --vfs-cache-mode full --vfs-cache-max-age 72h --vfs-cache-max-size 100G --vfs-read-ahead 2G"; ExecStop = "${curBin}/fusermount -u ${gdrivePath}"; Restart = "on-failure"; RestartSec = "10s";