nix-configs/nixos-modules/docker-qbittorrent.nix
2024-11-01 20:45:09 -04:00

31 lines
705 B
Nix

{
virtualisation = {
containers.enable = true;
podman.enable = true;
oci-containers.containers = {
qbittorrent = {
image = "lscr.io/linuxserver/qbittorrent";
volumes = [
"qbittorrent-config:/config"
"/video-data/torrent:/data/torrent"
];
environment = {
TZ = "America/New_York";
PUID = "910";
PGID = "911";
UMASK = "002";
DELUGE_LOGLEVEL = "error";
};
labels.swag = "enable";
ports = [
"34996:34996"
"34996:34996/udp"
];
extraOptions = [
"--pull=newer"
"--network=www"
];
};
};
};
}