diff options
-rw-r--r-- | hosts/arrakis/default.nix | 44 |
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 = [ |