From e27baf32ee8b4190b17e3593def205bef032d77a Mon Sep 17 00:00:00 2001 From: Sergei Poljanski Date: Tue, 17 Nov 2026 10:06:13 +0400 Subject: [PATCH] replica: give rclone a home directory rclone looked for one and logged three errors per bucket on every run, though its remotes come from the environment. Assisted-by: Claude:opus-5-5 --- nixos/hosts/asxpio-services/replica.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nixos/hosts/asxpio-services/replica.nix b/nixos/hosts/asxpio-services/replica.nix index ffd3ccc..00cc4b2 100644 --- a/nixos/hosts/asxpio-services/replica.nix +++ b/nixos/hosts/asxpio-services/replica.nix @@ -55,8 +55,12 @@ in after = [ "network-online.target" ]; onFailure = [ "alert-mail@%n.service" ]; path = [ pkgs.rclone ]; + # rclone looks for a home directory even when its remotes come from + # the environment + environment.HOME = "/var/lib/s3-replicate"; serviceConfig = { Type = "oneshot"; + StateDirectory = "s3-replicate"; EnvironmentFile = config.sops.templates."s3-replicate.env".path; TimeoutStartSec = "12h"; };