kariru: init gluetun/qb, increase config limit
This commit is contained in:
parent
4ea0b4eab3
commit
29ea8edfbe
3 changed files with 35 additions and 1 deletions
|
@ -8,7 +8,7 @@
|
|||
boot.loader = {
|
||||
grub = {
|
||||
enable = true;
|
||||
configurationLimit = 3;
|
||||
configurationLimit = 5;
|
||||
device = "/dev/sda";
|
||||
useOSProber = false;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
_: {
|
||||
imports = [
|
||||
./traefik.nix
|
||||
./torrent.nix
|
||||
];
|
||||
services.radarr = {
|
||||
enable = true;
|
||||
|
|
33
hosts/kariru/services/torrent.nix
Normal file
33
hosts/kariru/services/torrent.nix
Normal 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"];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue