From a40a1f9c6c87b650ba0fde699dc07dee3715d43e Mon Sep 17 00:00:00 2001 From: makefu Date: Wed, 22 Apr 2020 16:05:06 +0200 Subject: rtorrent module: remove 17.03 crutch --- krebs/3modules/rtorrent.nix | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'krebs/3modules/rtorrent.nix') diff --git a/krebs/3modules/rtorrent.nix b/krebs/3modules/rtorrent.nix index 43c2798d..eb27aa34 100644 --- a/krebs/3modules/rtorrent.nix +++ b/krebs/3modules/rtorrent.nix @@ -301,6 +301,7 @@ let default = mkDefault true; inherit (webcfg) basicAuth; root = optionalString rucfg.enable webdir; + listen = [ { inherit (webcfg) addr port; } ]; locations = { "/RPC2".extraConfig = '' @@ -319,15 +320,7 @@ let include ${pkgs.nginx}/conf/fastcgi.conf; ''; } ); - # workaround because upstream nginx api changed - # TODO remove when nobody uses 17.03 anymore - } // (if hasAttr "port" (head options.services.nginx.virtualHosts.type.getSubModules).submodule.options then { - port = webcfg.port; - } else { - listen = [ - { inherit (webcfg) addr port; } - ]; - }); + }; }; rutorrent-imp = { -- cgit v1.2.3