2024-11-04 10:00:41 +01:00
|
|
|
{ config, ... }:
|
|
|
|
|
let
|
|
|
|
|
cfg = import /etc/nixos/modules/vars.nix;
|
|
|
|
|
crossseed_port = cfg.arrstack.crossseed.port;
|
2025-06-06 10:20:36 +02:00
|
|
|
PUID = toString config.users.users.arr.uid;
|
|
|
|
|
PGID = toString config.users.groups.arr.gid;
|
2024-11-04 10:00:41 +01:00
|
|
|
in
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
virtualisation.oci-containers.containers.crossseed = {
|
|
|
|
|
image = "docker.io/crossseed/cross-seed";
|
|
|
|
|
cmd = [ "daemon" ];
|
|
|
|
|
environment = {
|
|
|
|
|
TZ = "Europe/Berlin";
|
|
|
|
|
};
|
|
|
|
|
ports = [
|
|
|
|
|
"${crossseed_port}:${crossseed_port}"
|
|
|
|
|
];
|
2025-06-06 10:20:36 +02:00
|
|
|
user = "${PUID}:${PGID}";
|
2024-11-04 10:00:41 +01:00
|
|
|
volumes = [
|
|
|
|
|
"/var/lib/cross-seed:/config"
|
|
|
|
|
"/var/lib/qbittorrent/qBittorrent/data/BT_backup:/torrents"
|
2025-06-06 10:20:36 +02:00
|
|
|
"/var/lib/qbittorrent/qBittorrent/data/cross-seeds:/cross-seeds"
|
2024-11-04 10:00:41 +01:00
|
|
|
"/mnt/mergerfs/media/qbittorrent:/data/qbittorrent"
|
2025-06-06 10:20:36 +02:00
|
|
|
"/mnt/cache/qbittorrent:/cache"
|
2024-11-04 10:00:41 +01:00
|
|
|
];
|
|
|
|
|
extraOptions = cfg.podman.extraOptions;
|
2025-06-06 10:20:36 +02:00
|
|
|
autoStart = false;
|
2024-11-04 10:00:41 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
# vim: set et ts=2 sw=2 ai:
|