mirror of
https://github.com/FabricSoul/nixos-configs.git
synced 2025-08-04 01:00:22 -04:00
feat: add qbit
This commit is contained in:
parent
666eac0e37
commit
b368c62b3d
4 changed files with 68 additions and 9 deletions
|
@ -1,11 +1,30 @@
|
|||
{...}: {
|
||||
# Enable qBittorrent daemon
|
||||
services.qbittorrent = {
|
||||
enable = true;
|
||||
dataDir = "/var/lib/qbittorrent";
|
||||
user = "qbittorrent";
|
||||
group = "qbittorrent";
|
||||
port = 8080; # WebUI port
|
||||
openFirewall = true; # Opens the WebUI port in firewall
|
||||
virtualisation.oci-containers = {
|
||||
backend = "docker"; # or "podman"
|
||||
containers = {
|
||||
qbittorrent = {
|
||||
image = "lscr.io/linuxserver/qbittorrent:latest";
|
||||
autoStart = true; # Equivalent to restart: unless-stopped
|
||||
|
||||
environment = {
|
||||
PUID = "1000";
|
||||
PGID = "1000";
|
||||
TZ = "Etc/UTC";
|
||||
WEBUI_PORT = "8080";
|
||||
TORRENTING_PORT = "6881";
|
||||
};
|
||||
|
||||
volumes = [
|
||||
"/path/to/qbittorrent/appdata:/config"
|
||||
"/nas/downloads:/downloads" # optional
|
||||
];
|
||||
|
||||
ports = [
|
||||
"8080:8080" # WebUI
|
||||
"6881:6881" # Torrenting TCP
|
||||
"6881:6881/udp" # Torrenting UDP
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue