change basically nothing and hope it works
This commit is contained in:
parent
652c2043a5
commit
993b457e0b
1 changed files with 1 additions and 2 deletions
|
@ -6,13 +6,12 @@
|
||||||
systemd.services.immich-mount = {
|
systemd.services.immich-mount = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Mount the immich data remote";
|
description = "Mount the immich data remote";
|
||||||
after = ["network-online.target"];
|
|
||||||
requires = ["network-online.target"];
|
requires = ["network-online.target"];
|
||||||
requiredBy = ["podman-immich-server.service"];
|
requiredBy = ["podman-immich-server.service"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStartPre = "/usr/bin/env mkdir -p /mnt/photos";
|
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 --vfs-cache-mode writes --vfs-cache-max-size 2G photos: /mnt/photos ";
|
ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --cache-dir /var/cache/rclone --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G photos: /mnt/photos ";
|
||||||
ExecStop = "${pkgs.fuse}/bin/fusermount -u /mnt/photos";
|
ExecStop = "${pkgs.fuse}/bin/fusermount -u /mnt/photos";
|
||||||
EnvironmentFile = config.sops.secrets."rclone/env".path;
|
EnvironmentFile = config.sops.secrets."rclone/env".path;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue