aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-10-13 04:32:34 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-10-13 04:32:34 -0700
commitee42e3e60e7722a2ea5a35d4e449f1794d78d9a9 (patch)
treec15307a095d0a54334c1667a1eb040b4eac3e68a
parentea579efce1638777b09e3133e4fc2195e79f4601 (diff)
downloadnix-ee42e3e60e7722a2ea5a35d4e449f1794d78d9a9.tar
nix-ee42e3e60e7722a2ea5a35d4e449f1794d78d9a9.tar.gz
nix-ee42e3e60e7722a2ea5a35d4e449f1794d78d9a9.tar.bz2
nix-ee42e3e60e7722a2ea5a35d4e449f1794d78d9a9.tar.lz
nix-ee42e3e60e7722a2ea5a35d4e449f1794d78d9a9.tar.xz
nix-ee42e3e60e7722a2ea5a35d4e449f1794d78d9a9.tar.zst
nix-ee42e3e60e7722a2ea5a35d4e449f1794d78d9a9.zip
Configure qbittorrent @arrakis
-rw-r--r--hosts/arrakis/default.nix44
1 files changed, 33 insertions, 11 deletions
diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix
index 4615c8c..14042db 100644
--- a/hosts/arrakis/default.nix
+++ b/hosts/arrakis/default.nix
@@ -214,6 +214,23 @@
system.stateVersion = "23.11";
systemd.services = {
+
+ "lidarr" = {
+ after = [ "network.target" ];
+ description = "Lidarr Daemon";
+ serviceConfig = {
+ User = "nipsy";
+ Group = "nipsy";
+ Restart = "always";
+ RestartSec= 5;
+ Type = "simple";
+ ExecStart = "${pkgs.lidarr}/bin/Lidarr -nobrowser";
+ TimeoutStopSec = 20;
+ PIDFile = "/home/nipsy/.config/Lidarr/lidarr.pid";
+ };
+ wantedBy = [ "multi-user.target" ];
+ };
+
"nftables-extra" = {
description = "nftables extra firewall rules";
script = ''
@@ -243,37 +260,38 @@
after = [ "nftables.service" ];
partOf = [ "nftables.service" ];
};
- "lidarr" = {
+
+ "prowlarr" = {
after = [ "network.target" ];
- description = "Lidarr Daemon";
+ description = "Prowlarr Daemon";
serviceConfig = {
User = "nipsy";
Group = "nipsy";
Restart = "always";
RestartSec= 5;
Type = "simple";
- ExecStart = "${pkgs.lidarr}/bin/Lidarr -nobrowser";
+ ExecStart = "${pkgs.prowlarr}/bin/Prowlarr -nobrowser";
TimeoutStopSec = 20;
- PIDFile = "/home/nipsy/.config/Lidarr/lidarr.pid";
+ PIDFile = "/home/nipsy/.config/Prowlarr/prowlarr.pid";
+ NetworkNamespacePath = "/run/netns/vpn";
};
wantedBy = [ "multi-user.target" ];
};
- "prowlarr" = {
+
+ "qbittorrent" = {
after = [ "network.target" ];
- description = "Prowlarr Daemon";
+ description = "qBittorrent-nox service";
serviceConfig = {
User = "nipsy";
Group = "nipsy";
- Restart = "always";
- RestartSec= 5;
Type = "simple";
- ExecStart = "${pkgs.prowlarr}/bin/Prowlarr -nobrowser";
- TimeoutStopSec = 20;
- PIDFile = "/home/nipsy/.config/Prowlarr/prowlarr.pid";
+ ExecStart = "${pkgs.qbittorrent-nox}/bin/qbittorrent-nox";
+ TimeoutStopSec = 1800;
NetworkNamespacePath = "/run/netns/vpn";
};
wantedBy = [ "multi-user.target" ];
};
+
"radarr" = {
after = [ "network.target" ];
description = "Radarr Daemon";
@@ -289,6 +307,7 @@
};
wantedBy = [ "multi-user.target" ];
};
+
"readarr" = {
after = [ "network.target" ];
description = "Readarr Daemon";
@@ -304,6 +323,7 @@
};
wantedBy = [ "multi-user.target" ];
};
+
"sonarr" = {
after = [ "network.target" ];
description = "Sonarr Daemon";
@@ -319,7 +339,9 @@
};
wantedBy = [ "multi-user.target" ];
};
+
};
+
systemd.paths."nftables-extra" = {
pathConfig = {
PathExists = [