add jellyfin and deluge and some rclone config improvements
This commit is contained in:
parent
0c1d8c0720
commit
bd6a84c0d6
5 changed files with 52 additions and 8 deletions
|
@ -73,3 +73,13 @@ grafana.cything.io {
|
|||
import common
|
||||
reverse_proxy localhost:8088
|
||||
}
|
||||
|
||||
warez.cything.io {
|
||||
import common
|
||||
reverse_proxy localhost:8096
|
||||
}
|
||||
|
||||
t.cything.io {
|
||||
import common
|
||||
reverse_proxy localhost:8112
|
||||
}
|
||||
|
|
|
@ -24,6 +24,8 @@
|
|||
./ghost.nix
|
||||
./conduit.nix
|
||||
./immich.nix
|
||||
./jellyfin.nix
|
||||
./deluge.nix
|
||||
];
|
||||
|
||||
sops.age.keyFile = "/root/.config/sops/age/keys.txt";
|
||||
|
|
9
hosts/chunk/deluge.nix
Normal file
9
hosts/chunk/deluge.nix
Normal file
|
@ -0,0 +1,9 @@
|
|||
{...}: {
|
||||
services.deluge = {
|
||||
enable = true;
|
||||
web = {
|
||||
enable = true;
|
||||
port = 8112;
|
||||
};
|
||||
};
|
||||
}
|
7
hosts/chunk/jellyfin.nix
Normal file
7
hosts/chunk/jellyfin.nix
Normal file
|
@ -0,0 +1,7 @@
|
|||
{...}: {
|
||||
services.jellyfin = {
|
||||
enable = true;
|
||||
dataDir = "/mnt/jellyfin";
|
||||
configDir = "/var/lib/jellyfin/config";
|
||||
};
|
||||
}
|
|
@ -6,28 +6,44 @@
|
|||
systemd.services.immich-mount = {
|
||||
enable = true;
|
||||
description = "Mount the immich data remote";
|
||||
after = ["network-online.target"];
|
||||
after = ["network-online.target" "podman-immich-server.service"];
|
||||
requires = ["network-online.target"];
|
||||
wantedBy = ["default.target"];
|
||||
requiredBy = ["podman-immich-server.service"];
|
||||
serviceConfig = {
|
||||
Type = "notify";
|
||||
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";
|
||||
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;
|
||||
description = "Mount the nextcloud data remote";
|
||||
after = ["network-online.target"];
|
||||
after = ["network-online.target" "jellyfin.service"];
|
||||
requires = ["network-online.target"];
|
||||
wantedBy = ["default.target"];
|
||||
requiredBy = ["jellyfin.service"];
|
||||
serviceConfig = {
|
||||
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";
|
||||
ExecStop = "/bin/fusermount -u /mnt/nextcloud";
|
||||
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 --vfs-cache-mode writes jellyfin: /mnt/jellyfin";
|
||||
ExecStop = "/bin/fusermount -u /mnt/jellyfin";
|
||||
EnvironmentFile = config.sops.secrets."rclone/env".path;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue