systemd unit to create a network for transmission
Some checks failed
/ perform flake analysis (push) Successful in 41s
/ build hive configuration (push) Failing after 57s

This commit is contained in:
Awen Lelu
2025-12-20 13:42:53 +01:00
parent 1e58fbe5f4
commit 77b1bf9249

View File

@@ -15,12 +15,30 @@
transmission.gid = 989;
};
systemd.services = {
docker-transmission-network = {
after = [
"network.target"
"docker-gluetun"
"docker-transmission"
];
wantedBy = [
"docker-gluetun"
"docker-transmission"
];
serviceConfig = {
ExecStart = "docker network create docker-transmission";
};
};
};
virtualisation.oci-containers =
let
peerport = "63369";
in
{
backend = "docker";
networking = { };
containers = {
gluetun = {
image = "qmcgaw/gluetun";
@@ -39,6 +57,7 @@
extraOptions = [
"--cap-add=NET_ADMIN"
"--device=/dev/net/tun"
"--network=docker-transmission"
];
ports = [
"13277:13277"
@@ -59,7 +78,7 @@
"gluetun"
];
extraOptions = [
"--network=service:gluetun"
"--network=docker-transmission"
];
environment = {
PUID = toString config.users.users.transmission.uid;