This commit is contained in:
Hadi
2024-06-23 23:32:18 +02:00
parent 469f903657
commit d5aa5b1a49
4 changed files with 28 additions and 15 deletions

View File

@@ -1,9 +1,4 @@
{
users.users.radarr = {
isSystemUser = true;
home = "/var/lib/radarr-root";
};
services.radarr = {
enable = true;
openFirewall = true;

View File

@@ -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 ];
}