From d5aa5b1a49f8752a4de61941cdc01a732e8f8aa9 Mon Sep 17 00:00:00 2001 From: Hadi <112569860+anotherhadi@users.noreply.github.com> Date: Sun, 23 Jun 2024 23:32:18 +0200 Subject: [PATCH] update --- docs/TODO.md | 1 + hosts/server/modules/jackflix/radarr.nix | 5 ----- .../server/modules/jackflix/transmission.nix | 17 ++++++++++++++++ .../modules/www/home.anotherhadi.com.nix | 20 +++++++++---------- 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/docs/TODO.md b/docs/TODO.md index f2ae1dd..12822a8 100644 --- a/docs/TODO.md +++ b/docs/TODO.md @@ -28,3 +28,4 @@ feel free to contribute <3 ([CONTRIBUTING.md](CONTRIBUTING.md)) - [ ] server fetch - [ ] Ntfy auth file - [ ] Fix adguard + - [ ] Launch transmission-openvpn on boot (see hosts/server/modules/jackflix/transmission.nix) diff --git a/hosts/server/modules/jackflix/radarr.nix b/hosts/server/modules/jackflix/radarr.nix index 4d6dd4b..81bfec1 100644 --- a/hosts/server/modules/jackflix/radarr.nix +++ b/hosts/server/modules/jackflix/radarr.nix @@ -1,9 +1,4 @@ { - users.users.radarr = { - isSystemUser = true; - home = "/var/lib/radarr-root"; - }; - services.radarr = { enable = true; openFirewall = true; diff --git a/hosts/server/modules/jackflix/transmission.nix b/hosts/server/modules/jackflix/transmission.nix index d0bf400..e0dc690 100644 --- a/hosts/server/modules/jackflix/transmission.nix +++ b/hosts/server/modules/jackflix/transmission.nix @@ -1,4 +1,21 @@ { + environment.etc."/etc/transmission.sh" = { + text = '' + docker run --cap-add=NET_ADMIN -d \ + -v /var/lib/transmission-openvpn/data:/data \ + -v /var/lib/transmission-openvpn/config:/config \ + -e OPENVPN_PROVIDER=PIA \ + -e OPENVPN_CONFIG=france \ + -e OPENVPN_USERNAME=username\ + -e OPENVPN_PASSWORD="password" \ + -e LOCAL_NETWORK=192.168.2.0/24 \ + --log-driver json-file \ + --log-opt max-size=10m \ + -p 9091:9091 \ + haugene/transmission-openvpn + ''; + }; + # launch the container at boot networking.firewall.allowedTCPPorts = [ 9091 ]; networking.firewall.allowedUDPPorts = [ 9091 ]; } diff --git a/hosts/server/modules/www/home.anotherhadi.com.nix b/hosts/server/modules/www/home.anotherhadi.com.nix index 631bec6..25a1b88 100644 --- a/hosts/server/modules/www/home.anotherhadi.com.nix +++ b/hosts/server/modules/www/home.anotherhadi.com.nix @@ -14,7 +14,7 @@ let }, "folders": [ { - "name": "Home", + "name": " Home", "links": [ { "title": "Nextcloud", @@ -29,47 +29,47 @@ let ] }, { - "name": "Streaming", + "name": "󰚺 Streaming", "links": [ { "title": "Jellyfin", "url": "http://jack:8096", - "icon": "󰅟" + "icon": "󰼂" }, { "title": "Jellyseerr", "url": "http://jack:5055", - "icon": "󰅟" + "icon": "󰼁" }, { "title": "Radarr", "url": "http://jack:7878", - "icon": "󰅟" + "icon": "R" }, { "title": "Sonarr", "url": "http://jack:8989", - "icon": "󰅟" + "icon": "S" }, { "title": "Bazarr", "url": "http://jack:6767", - "icon": "󰅟" + "icon": "B" }, { "title": "Transmission", "url": "http://jack:9091", - "icon": "󰅟" + "icon": "󰴾" }, { "title": "Prowlarr", "url": "http://jack:9696", - "icon": "󰅟" + "icon": "󱖫" } ] }, { - "name": "Admin", + "name": " Admin", "links": [ { "title": "Uptime Kuma",