From e948100452a5fa8497eef66d526fe0cf19452827 Mon Sep 17 00:00:00 2001 From: cy Date: Tue, 17 Dec 2024 17:24:12 -0500 Subject: [PATCH] rclone: limit vfs cache size --- hosts/chunk/-copilot.log | 0 hosts/chunk/rclone.nix | 4 ++-- 2 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 hosts/chunk/-copilot.log diff --git a/hosts/chunk/-copilot.log b/hosts/chunk/-copilot.log new file mode 100644 index 0000000..e69de29 diff --git a/hosts/chunk/rclone.nix b/hosts/chunk/rclone.nix index 8f12b8f..33ac037 100644 --- a/hosts/chunk/rclone.nix +++ b/hosts/chunk/rclone.nix @@ -12,7 +12,7 @@ serviceConfig = { Type = "notify"; ExecStartPre = "/usr/bin/env mkdir -p /mnt/photos"; - ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --transfers=32 --dir-cache-time 72h --poll-interval 0 --vfs-cache-mode writes photos: /mnt/photos "; + ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G photos: /mnt/photos "; ExecStop = "/bin/fusermount -u /mnt/photos"; EnvironmentFile = config.sops.secrets."rclone/env".path; }; @@ -42,7 +42,7 @@ serviceConfig = { Type = "notify"; ExecStartPre = "/usr/bin/env mkdir -p /mnt/jellyfin"; - ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --allow-other --transfers=32 --vfs-cache-mode writes jellyfin: /mnt/jellyfin"; + ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --allow-other --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G jellyfin: /mnt/jellyfin"; ExecStop = "/bin/fusermount -u /mnt/jellyfin"; EnvironmentFile = config.sops.secrets."rclone/env".path; };