add jellyfin and deluge and some rclone config improvements

This commit is contained in:
cy 2024-12-17 16:41:58 -05:00
parent 0c1d8c0720
commit bd6a84c0d6
5 changed files with 52 additions and 8 deletions

View file

@ -73,3 +73,13 @@ grafana.cything.io {
import common import common
reverse_proxy localhost:8088 reverse_proxy localhost:8088
} }
warez.cything.io {
import common
reverse_proxy localhost:8096
}
t.cything.io {
import common
reverse_proxy localhost:8112
}

View file

@ -24,6 +24,8 @@
./ghost.nix ./ghost.nix
./conduit.nix ./conduit.nix
./immich.nix ./immich.nix
./jellyfin.nix
./deluge.nix
]; ];
sops.age.keyFile = "/root/.config/sops/age/keys.txt"; sops.age.keyFile = "/root/.config/sops/age/keys.txt";

9
hosts/chunk/deluge.nix Normal file
View file

@ -0,0 +1,9 @@
{...}: {
services.deluge = {
enable = true;
web = {
enable = true;
port = 8112;
};
};
}

7
hosts/chunk/jellyfin.nix Normal file
View file

@ -0,0 +1,7 @@
{...}: {
services.jellyfin = {
enable = true;
dataDir = "/mnt/jellyfin";
configDir = "/var/lib/jellyfin/config";
};
}

View file

@ -6,28 +6,44 @@
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"]; after = ["network-online.target" "podman-immich-server.service"];
requires = ["network-online.target"]; requires = ["network-online.target"];
wantedBy = ["default.target"]; 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 720h --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 --poll-interval 0 --vfs-cache-mode writes photos: /mnt/photos ";
ExecStop = "/bin/fusermount -u /mnt/photos"; ExecStop = "/bin/fusermount -u /mnt/photos";
EnvironmentFile = config.sops.secrets."rclone/env".path; EnvironmentFile = config.sops.secrets."rclone/env".path;
}; };
}; };
systemd.services.nextcloud-mount = { # systemd.services.nextcloud-mount = {
# enable = true;
# description = "Mount the nextcloud data remote";
# after = ["network-online.target"];
# requires = ["network-online.target"];
# wantedBy = ["default.target"];
# serviceConfig = {
# Type = "notify";
# ExecStartPre = "/usr/bin/env mkdir -p /mnt/nextcloud";
# ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --uid 33 --gid 0 --allow-other --file-perms 0770 --dir-perms 0770 --transfers=32 rsyncnet:nextcloud /mnt/nextcloud";
# ExecStop = "/bin/fusermount -u /mnt/nextcloud";
# EnvironmentFile = config.sops.secrets."rclone/env".path;
# };
# };
systemd.services.jellyfin-mount = {
enable = true; enable = true;
description = "Mount the nextcloud data remote"; description = "Mount the nextcloud data remote";
after = ["network-online.target"]; after = ["network-online.target" "jellyfin.service"];
requires = ["network-online.target"]; requires = ["network-online.target"];
wantedBy = ["default.target"]; requiredBy = ["jellyfin.service"];
serviceConfig = { serviceConfig = {
Type = "notify"; Type = "notify";
ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --uid 33 --gid 0 --allow-other --file-perms 0770 --dir-perms 0770 --transfers=32 rsyncnet:nextcloud /mnt/nextcloud"; ExecStartPre = "/usr/bin/env mkdir -p /mnt/jellyfin";
ExecStop = "/bin/fusermount -u /mnt/nextcloud"; ExecStart = "${pkgs.rclone}/bin/rclone mount --config /home/yt/.config/rclone/rclone.conf --allow-other --transfers=32 --vfs-cache-mode writes jellyfin: /mnt/jellyfin";
ExecStop = "/bin/fusermount -u /mnt/jellyfin";
EnvironmentFile = config.sops.secrets."rclone/env".path; EnvironmentFile = config.sops.secrets."rclone/env".path;
}; };
}; };