Add test qbit setup
ci / test (push) Failing after 31s Details
ci / deploy (push) Has been skipped Details

This commit is contained in:
Ciapa 2024-02-08 22:06:07 +01:00
parent 55f8c82eef
commit 981502da5f
1 changed files with 39 additions and 2 deletions

View File

@ -1,22 +1,59 @@
{ lib, ... }:
{
containers.test = {
networking.nat.forwardPorts = [
{
destination = "192.168.100.11:51506";
proto = "tcp";
sourcePort = 51506;
}
{
destination = "192.168.100.11:51506";
proto = "udp";
sourcePort = 51506;
}
];
containers.seedbox_test = {
autoStart = true;
privateNetwork = true;
hostAddress = "10.175.197.82";
localAddress = "192.168.100.11";
bindMounts = {
"/home" = {
hostPath = "/mnt/zbigdata/seedbox_test";
isReadOnly = false;
};
};
config = { config, pkgs, ... }: {
system.stateVersion = "24.05";
networking = {
firewall = {
enable = true;
allowedTCPPorts = [ 80 ];
};
useHostResolvConf = lib.mkForce false;
};
services.resolved.enable = true;
# Custom stuff
variables.qbittorrent = {
user = "test";
group = "test";
torrentPort = 51506;
uiPort = 8888;
configDir = "/home/test/";
openFilesLimit = 8192;
};
users.groups.test = {};
users.users.test = {
group = "test";
isNormalUser = true;
home = "/home/test";
};
};
};
}