replica: give rclone a home directory
All checks were successful
nixos / nixos (push) Successful in 33s

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
This commit is contained in:
Sergei Poljanski 2026-11-17 10:06:13 +04:00
commit e27baf32ee
Signed by: asxpi
GPG key ID: 4F8851660FA4121B

View file

@ -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";
};