re-added flood-for-transmission web ui for managing transmission.
This time its only available to the local network though
This commit is contained in:
parent
7f08d8e02f
commit
6dad7e836a
|
@ -20,7 +20,7 @@
|
||||||
wg-config = "/mnt/wg.conf";
|
wg-config = "/mnt/wg.conf";
|
||||||
jellyfin-gid = 989;
|
jellyfin-gid = 989;
|
||||||
|
|
||||||
ports-list = pkgs.lib.attrsets.mapAttrsToList (name: value: value.port) ports;
|
ports-list = (pkgs.lib.attrsets.mapAttrsToList (name: value: value.port) ports) ++ [9091];
|
||||||
in {
|
in {
|
||||||
microvm.autostart = [vm-name];
|
microvm.autostart = [vm-name];
|
||||||
imports = [./nginx.nix];
|
imports = [./nginx.nix];
|
||||||
|
@ -162,7 +162,9 @@ in {
|
||||||
services.transmission = pkgs.lib.mkIf enable-services {
|
services.transmission = pkgs.lib.mkIf enable-services {
|
||||||
enable = true;
|
enable = true;
|
||||||
openPeerPorts = true;
|
openPeerPorts = true;
|
||||||
|
openRPCPort = true;
|
||||||
home = "/mnt/transmission";
|
home = "/mnt/transmission";
|
||||||
|
webHome = "${pkgs.flood-for-transmission}";
|
||||||
settings = {
|
settings = {
|
||||||
download-dir = "/media/.transmission/";
|
download-dir = "/media/.transmission/";
|
||||||
incomplete-dir = "/media/.transmission/.incomplete";
|
incomplete-dir = "/media/.transmission/.incomplete";
|
||||||
|
@ -170,6 +172,8 @@ in {
|
||||||
peer-port-random-high = 65535;
|
peer-port-random-high = 65535;
|
||||||
peer-port-random-on-start = true;
|
peer-port-random-on-start = true;
|
||||||
download-queue-enabled = false;
|
download-queue-enabled = false;
|
||||||
|
|
||||||
|
rpc-authentication-required = false;
|
||||||
};
|
};
|
||||||
downloadDirPermissions = "775";
|
downloadDirPermissions = "775";
|
||||||
performanceNetParameters = true;
|
performanceNetParameters = true;
|
||||||
|
@ -226,6 +230,14 @@ in {
|
||||||
)
|
)
|
||||||
ports);
|
ports);
|
||||||
|
|
||||||
|
# Forward transmission web port to vm
|
||||||
|
networking.nat.forwardPorts = [
|
||||||
|
{
|
||||||
|
sourcePort = 9091;
|
||||||
|
destination = "${host}:9091";
|
||||||
|
}
|
||||||
|
];
|
||||||
|
|
||||||
networking.firewall.allowedTCPPorts = ports-list;
|
networking.firewall.allowedTCPPorts = ports-list;
|
||||||
networking.firewall.allowedUDPPorts = ports-list;
|
networking.firewall.allowedUDPPorts = ports-list;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
{...}:
|
{...}: {
|
||||||
{
|
|
||||||
virtualisation.docker = {
|
virtualisation.docker = {
|
||||||
enable = true;
|
enable = true;
|
||||||
storageDriver = "zfs";
|
storageDriver = "zfs";
|
||||||
|
|
Loading…
Reference in a new issue