torrents reenabled!

kdjfsdf
This commit is contained in:
Danilo Reyes 2023-09-03 01:59:37 -06:00
parent 49280cf576
commit 90280d913c

View File

@ -389,7 +389,7 @@ telegram-desktop # furry chat
nicotine-plus # remember Ares? nicotine-plus # remember Ares?
warp # never used, but supposedly cool for sharing files warp # never used, but supposedly cool for sharing files
HentaiAtHome # uh-oh HentaiAtHome # uh-oh
unpackerr # unpacks torrents... qbittorrent-nox # piracy is fun!
#+end_src #+end_src
** COMMAND-LINE PACKAGES ** COMMAND-LINE PACKAGES
@ -918,6 +918,7 @@ services = {
inotify = "yes"; inotify = "yes";
media_dir = [ media_dir = [
"/mnt/disk2/glue" "/mnt/disk2/glue"
"/mnt/disk1/multimedia/downloads"
]; ];
}; };
}; };
@ -998,6 +999,7 @@ All the fun stuff happens here >:).
}; };
sonarr = { sonarr = {
enable = true; enable = true;
package = unstable.pkgs.sonarr;
group = "piracy"; group = "piracy";
}; };
radarr = { radarr = {
@ -1087,7 +1089,7 @@ the best way to define them for now, is using nix.
#+begin_src nix #+begin_src nix
systemd = { systemd = {
services = { services = {
"docker-compose" = { docker-compose = {
enable = true; enable = true;
restartIfChanged = true; restartIfChanged = true;
description = "Start docker-compose servers"; description = "Start docker-compose servers";
@ -1107,7 +1109,7 @@ systemd = {
ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down"; ExecStop = "${pkgs.docker-compose}/bin/docker-compose -f \${FILE} down";
}; };
}; };
"nextcloud-cronjob" = let jawzNextcloudCronjob = pkgs.writeScriptBin nextcloud-cronjob = let jawzNextcloudCronjob = pkgs.writeScriptBin
"nextcloud-cronjob" (builtins.readFile ./scripts/nextcloud-cronjob.sh); in { "nextcloud-cronjob" (builtins.readFile ./scripts/nextcloud-cronjob.sh); in {
description = "Runs various nextcloud-related cronjobs"; description = "Runs various nextcloud-related cronjobs";
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
@ -1121,9 +1123,19 @@ systemd = {
ExecStart = "${jawzNextcloudCronjob}/bin/nextcloud-cronjob"; ExecStart = "${jawzNextcloudCronjob}/bin/nextcloud-cronjob";
}; };
}; };
qbittorrent-nox = {
enable = true;
description = "qBittorrent-nox service";
serviceConfig = {
Type = "exec";
ExecStart= "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox --webui-port=9091";
User = "jawz";
};
wantedBy = [ "multi-user.target" ];
};
}; };
timers = { timers = {
"nextcloud-cronjob" = { nextcloud-cronjob = {
enable = true; enable = true;
description = "Runs various nextcloud-related cronjobs"; description = "Runs various nextcloud-related cronjobs";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
@ -1134,14 +1146,11 @@ systemd = {
}; };
user = { user = {
services = { services = {
"HentaiAtHome" = { HentaiAtHome = {
enable = true; enable = true;
restartIfChanged = true; restartIfChanged = true;
description = "Run hentai@home server"; description = "Run hentai@home server";
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
path = [
pkgs.HentaiAtHome
];
serviceConfig = { serviceConfig = {
Restart = "on-failure"; Restart = "on-failure";
RestartSec = 30; RestartSec = 30;
@ -1149,7 +1158,18 @@ systemd = {
ExecStart = "${pkgs.HentaiAtHome}/bin/HentaiAtHome"; ExecStart = "${pkgs.HentaiAtHome}/bin/HentaiAtHome";
}; };
}; };
"manage-library" = { unpackerr = {
enable = true;
restartIfChanged = true;
description = "Run unpackerr";
wantedBy = [ "default.target" ];
serviceConfig = {
Restart = "on-failure";
RestartSec = 30;
ExecStart = "${pkgs.unpackerr}/bin/unpackerr -c /home/jawz/.config/unpackerr.conf";
};
};
manage-library = {
enable = true; enable = true;
restartIfChanged = true; restartIfChanged = true;
description = "Run the manage library bash script"; description = "Run the manage library bash script";
@ -1165,7 +1185,7 @@ systemd = {
ExecStart = "${jawzManageLibrary}/bin/manage-library"; ExecStart = "${jawzManageLibrary}/bin/manage-library";
}; };
}; };
"tasks" = { tasks = {
restartIfChanged = true; restartIfChanged = true;
description = "Run a tasks script which keeps a lot of things organized"; description = "Run a tasks script which keeps a lot of things organized";
wantedBy = [ "default.target" ]; wantedBy = [ "default.target" ];
@ -1180,7 +1200,7 @@ systemd = {
ExecStart = "${jawzTasks}/bin/tasks"; ExecStart = "${jawzTasks}/bin/tasks";
}; };
}; };
"update-dns" = let jawzUpdateDns = pkgs.writeScriptBin update-dns = let jawzUpdateDns = pkgs.writeScriptBin
"update-dns" (builtins.readFile ./scripts/update-dns.sh); in { "update-dns" (builtins.readFile ./scripts/update-dns.sh); in {
restartIfChanged = true; restartIfChanged = true;
description = "update DNS of my websites"; description = "update DNS of my websites";
@ -1196,9 +1216,23 @@ systemd = {
ExecStart = "${jawzUpdateDns}/bin/update-dns"; ExecStart = "${jawzUpdateDns}/bin/update-dns";
}; };
}; };
qbit_manage = let qbit_dir = "/home/jawz/Development/Git/qbit_manage"; in {
restartIfChanged = true;
description = "Tidy up my torrents";
wantedBy = [ "default.target" ];
path = [
pkgs.python3
pkgs.pipenv
];
serviceConfig = {
Restart = "on-failure";
RestartSec = 30;
ExecStart = "${qbit_dir}/.venv/bin/python3 ${qbit_dir}/qbit_manage.py -r -c ${qbit_dir}/config.yml";
};
};
}; };
timers = { timers = {
"tasks" = { tasks = {
enable = true; enable = true;
description = "Run a tasks script which keeps a lot of things organized"; description = "Run a tasks script which keeps a lot of things organized";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
@ -1206,7 +1240,7 @@ systemd = {
OnCalendar = "*:0/10"; OnCalendar = "*:0/10";
}; };
}; };
"update_dns" = { update_dns = {
enable = true; enable = true;
description = "update DNS of my websites"; description = "update DNS of my websites";
wantedBy = [ "timers.target" ]; wantedBy = [ "timers.target" ];
@ -1215,6 +1249,14 @@ systemd = {
OnUnitActiveSec = "6h"; OnUnitActiveSec = "6h";
}; };
}; };
qbit_manage = {
enable = true;
description = "Tidy up my torrents";
wantedBy = [ "timers.target" ];
timerConfig = {
OnCalendar = "*:0/10";
};
};
}; };
}; };
}; };