Some changes

This commit is contained in:
baduhai 2023-01-04 13:19:12 -03:00
parent 67faa4a5a8
commit 39eee39807
6 changed files with 26 additions and 132 deletions

View file

@ -2,39 +2,6 @@
{
services = {
transmission = {
enable = true;
group = "hosted";
settings = {
download-dir = "/data/torrent_storage/completed";
incomplete-dir = "/data/torrent_storage/incomplete";
incomplete-dir-enabled = true;
rpc-authentication-required = false;
rpc-host-whitelist-enabled = true;
rpc-whitelist-enabled = true;
peer-port = 57298;
speed-limit-down = 5000;
speed-limit-down-enabled = true;
speed-limit-up = 500;
speed-limit-up-enabled = true;
alt-speed-down = 5000;
alt-speed-enabled = false;
alt-speed-time-begin = 240;
alt-speed-time-day = 127;
alt-speed-time-enabled = true;
alt-speed-time-end = 480;
alt-speed-up = 1500;
utp-enabled = false;
};
};
flood = {
enable = true;
user = "transmission";
group = "hosted";
port = "${config.ports.flood}";
};
jellyfin = {
enable = true;
group = "hosted";

View file

@ -18,7 +18,7 @@
"librespeed" = {
image = "lscr.io/linuxserver/librespeed:latest";
environment = {
TZ = "Europe/Berlin";
TZ = "America/Bahia";
};
ports = [
"${config.ports.librespeed}:80"
@ -27,12 +27,32 @@
"--pull=always"
];
};
"qflood" = {
image = "cr.hotio.dev/hotio/qflood";
environment = {
PUID = "1000";
PGID = "100";
UMASK = "002";
TZ = "America/Bahia";
FLOOD_AUTH = "false";
};
volumes = [
"/data/qflood:/config"
];
ports = [
"${config.ports.flood}:3000"
"${config.ports.qbittorrent}:8080"
];
extraOptions = [
"--pull=always"
];
};
"syncthing" = {
image = "lscr.io/linuxserver/syncthing:1.20.4";
environment = {
PUID = "1000";
PGID = "100";
TZ = "Europe/Berlin";
TZ = "America/Bahia";
};
volumes = [
"/data/syncthing/config:/config"

View file

@ -25,7 +25,7 @@
group = "hosted";
behindProxy = true;
datastorePath = "/data/changedetection";
port = "${config.ports.changedetection-io}";
port = lib.toInt "${config.ports.changedetection-io}";
baseURL = "https://detect.baduhai.me";
};
@ -34,7 +34,7 @@
dataDir = "/data/paperless/data";
mediaDir = "/data/paperless/media";
passwordFile = config.age.secrets.paperless-pass.path;
port = "${config.ports.paperless}";
port = lib.toInt "${config.ports.paperless}";
consumptionDirIsPublic = true;
extraConfig = {
PAPERLESS_OCR_LANGUAGE = "eng+por+deu";
@ -43,7 +43,7 @@
shiori = {
enable = true;
port = "${config.ports.shiori}";
port = lib.toInt "${config.ports.shiori}";
};
n8n.enable = true;

View file

@ -22,6 +22,7 @@ in
jellyfin = mkStringOption "8096";
whoogle = mkStringOption "8007";
flood = mkStringOption "8008";
qbittorrent = mkStringOption "8009";
sonarr = mkStringOption "8989";
prowlarr = mkStringOption "9696";
};