kariru: init gluetun/qb, increase config limit

This commit is contained in:
notohh 2023-06-16 04:18:29 -04:00
parent 4ea0b4eab3
commit 29ea8edfbe
Signed by: notohh
GPG key ID: BD47506D475EE86D
3 changed files with 35 additions and 1 deletions

View file

@ -8,7 +8,7 @@
boot.loader = {
grub = {
enable = true;
configurationLimit = 3;
configurationLimit = 5;
device = "/dev/sda";
useOSProber = false;
};

View file

@ -1,6 +1,7 @@
_: {
imports = [
./traefik.nix
./torrent.nix
];
services.radarr = {
enable = true;

View file

@ -0,0 +1,33 @@
{config, ...}: {
sops.secrets.gluetun = {};
virtualisation.oci-containers.containers = {
gluetun = {
image = "qmcgaw/gluetun";
ports = [
"8888:8888/tcp" # HTTP proxy
"8388:8388/tcp" # Shadowsocks
"8388:8388/udp" # Shadowsocks
"8080:8080" #qb
"6881:6881" #qb
"6881:6881/udp" #qb
];
environmentFiles = [config.sops.secrets.gluetun.path];
extraOptions = ["--cap-add=NET_ADMIN"];
};
qbittorrent = {
image = "linuxserver/qbittorrent:latest";
dependsOn = ["gluetun"];
environment = {
PUID = "1001";
PGID = "2001";
TZ = "Etc/UTC";
WEBUI_PORT = "8080";
};
volumes = [
"/home/notoh/qbittorrent/config:/config"
"/media/downloads:/downloads"
];
extraOptions = ["--network=container:gluetun"];
};
};
}