try to fix stuff (still doesnt work)
This commit is contained in:
parent
9ee6c465e1
commit
5c9ac12df7
1 changed files with 5 additions and 5 deletions
|
@ -6,14 +6,14 @@
|
||||||
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" "podman-immich-server.service"];
|
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 --transfers=32 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G photos: /mnt/photos ";
|
||||||
ExecStop = "/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;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
@ -35,15 +35,15 @@
|
||||||
|
|
||||||
systemd.services.jellyfin-mount = {
|
systemd.services.jellyfin-mount = {
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "Mount the nextcloud data remote";
|
description = "Mount the jellyfin data remote";
|
||||||
after = ["network-online.target" "jellyfin.service"];
|
after = ["network-online.target"];
|
||||||
requires = ["network-online.target"];
|
requires = ["network-online.target"];
|
||||||
requiredBy = ["jellyfin.service"];
|
requiredBy = ["jellyfin.service"];
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
Type = "notify";
|
Type = "notify";
|
||||||
ExecStartPre = "/usr/bin/env mkdir -p /mnt/jellyfin";
|
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 --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G 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";
|
ExecStop = "${pkgs.fuse}/bin/fusermount -u /mnt/jellyfin";
|
||||||
EnvironmentFile = config.sops.secrets."rclone/env".path;
|
EnvironmentFile = config.sops.secrets."rclone/env".path;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue