diff --git a/machines/fuuko/services/torrent.nix b/machines/fuuko/services/torrent.nix index af42c75..03c438f 100644 --- a/machines/fuuko/services/torrent.nix +++ b/machines/fuuko/services/torrent.nix @@ -47,18 +47,6 @@ let (k: v: "${k}=${toString' v}") settings)); - # Without this patch, the download and upload lengths are wrong after pausing - # and unpausing. I don’t patch this globally (in the overlay), since aria2 is - # in the user environment and would have to be rebuilt on slow machines. - aria2 = pkgs.aria2.overrideAttrs (o: o // { - patches = [ - (pkgs.fetchpatch { - url = "https://github.com/aria2/aria2/commit/6ebdddb9f159e87923736f25900897b3602305f9.diff"; - sha256 = "1j5mnafiv92xnzghh03hfdvpn9647vfdcipamnvi8hnzk3ak4mj7"; - }) - ]; - }); - mkProxyService = socket: port: { wantedBy = [ "multi-user.target" ]; after = [ "wireguard-wg-aria.service" ]; @@ -128,7 +116,7 @@ in NetworkNamespacePath = "/run/netns/aria2"; Restart = "always"; - ExecStart = "${aria2}/bin/aria2c --conf-path=${configFile}"; + ExecStart = "${pkgs.unstable.aria2}/bin/aria2c --conf-path=${configFile}"; ExecReload = "${pkgs.coreutils}/bin/kill -HUP $MAINPID"; User = "aria2"; Group = "aria2";