summary refs log tree commit diff
path: root/assets/shaders/clouds.frag.glsl
AgeCommit message (Collapse)Author
2024-02-12Split rendering into own thread and sync through render action listsMel
href='#n28'>28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52
{
  me,
  config,
  lib,
  pkgs,
  auxiliaryPkgs,
  ...
}:

let
  inherit (pkgs) dockerTools;
  inherit (auxiliaryPkgs) common;

  transmission = pkgs.transmission_4;

  torrentLocalPort = 2018;
  torrentDir = "/srv/torrent";

  transmissionImage = dockerTools.streamLayeredImage {
    name = "transmission";
    tag = transmission.version;
    fromImage = common.alpine.base;
    contents = [ transmission ];
  };
in
{
  foundation.services.torrent = {
    image = transmissionImage;

    volumes = [
      [
        "${torrentDir}/transmission"
        "/var/lib/transmission/config"
      ]
      [
        "${torrentDir}/download"
        "/var/lib/transmission/download"
      ]
    ];

    entrypoint = lib.getExe' transmission "transmission-daemon";
    cmd = [
      "--foreground"
      "--port"
      "${toString torrentLocalPort}"
      "--config-dir"
      "/var/lib/transmission/config"
    ];

    customNetworkOption = "container:vpn";
  };
}