infrastructure/hosts/phoenix.lewd.wtf/containers/test.nix

60 lines
1.2 KiB
Nix
Raw Normal View History

{ lib, ... }:
{
2024-02-08 21:06:07 +00:00
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;
2024-02-06 19:33:35 +00:00
hostAddress = "10.175.197.82";
localAddress = "192.168.100.11";
2024-02-08 21:06:07 +00:00
bindMounts = {
"/home" = {
hostPath = "/mnt/zbigdata/seedbox_test";
isReadOnly = false;
};
};
config = { config, pkgs, ... }: {
system.stateVersion = "24.05";
networking = {
firewall = {
enable = true;
};
useHostResolvConf = lib.mkForce false;
};
services.resolved.enable = true;
2024-02-08 21:06:07 +00:00
# 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";
};
};
};
}