From 20c69c0386df4606af544342d7de6638356572a3 Mon Sep 17 00:00:00 2001 From: makefu Date: Mon, 24 Sep 2018 23:32:28 +0200 Subject: [PATCH] treewide: makefu.airdcpp -> krebs.airdcpp --- {makefu => krebs}/3modules/airdcpp.nix | 10 +++++----- krebs/3modules/default.nix | 1 + .../5pkgs/simple}/airdcpp-webclient/default.nix | 0 makefu/2configs/dcpp/airdcpp.nix | 14 +++++++------- makefu/3modules/default.nix | 1 - 5 files changed, 13 insertions(+), 13 deletions(-) rename {makefu => krebs}/3modules/airdcpp.nix (96%) rename {makefu/5pkgs => krebs/5pkgs/simple}/airdcpp-webclient/default.nix (100%) diff --git a/makefu/3modules/airdcpp.nix b/krebs/3modules/airdcpp.nix similarity index 96% rename from makefu/3modules/airdcpp.nix rename to krebs/3modules/airdcpp.nix index 342052e70..8c72680f3 100644 --- a/makefu/3modules/airdcpp.nix +++ b/krebs/3modules/airdcpp.nix @@ -1,10 +1,10 @@ { config, lib, pkgs, ... }: with import ; #genid let - cfg = config.makefu.airdcpp; + cfg = config.krebs.airdcpp; out = { - options.makefu.airdcpp = api; + options.krebs.airdcpp = api; config = lib.mkIf cfg.enable imp; }; @@ -18,7 +18,7 @@ let user = mkOption { description = '' - user which will run udpt. if kept default a new user will be created + user which will run airdcpp. if kept default a new user will be created ''; type = str; default = "airdcpp"; @@ -195,7 +195,7 @@ let '''' ) - (mapAttrsToList (name: val: val // { inherit name; }) cfg.hubs); + (mapAttrsToList (name: val: val // { inherit name; }) hubs); favoritesConfigFile = if (cfg.initialFavoritesConfigFile == null) then builtins.trace "warning: airdcpp hub passwords are stored in plain text" pkgs.writeText "initial-config" '' @@ -206,7 +206,7 @@ let '' else cfg.initialFavoritesConfigFile; genShares = shares: concatMapStringsSep "\n" (share: - ''${share.path}'' ) (mapAttrsToList (name: val: val // { inherit name; }) shares); diff --git a/krebs/3modules/default.nix b/krebs/3modules/default.nix index 82ae3b02e..43375ed53 100644 --- a/krebs/3modules/default.nix +++ b/krebs/3modules/default.nix @@ -6,6 +6,7 @@ let out = { imports = [ + ./airdcpp.nix ./announce-activation.nix ./apt-cacher-ng.nix ./backup.nix diff --git a/makefu/5pkgs/airdcpp-webclient/default.nix b/krebs/5pkgs/simple/airdcpp-webclient/default.nix similarity index 100% rename from makefu/5pkgs/airdcpp-webclient/default.nix rename to krebs/5pkgs/simple/airdcpp-webclient/default.nix diff --git a/makefu/2configs/dcpp/airdcpp.nix b/makefu/2configs/dcpp/airdcpp.nix index 44940812d..fe05effd9 100644 --- a/makefu/2configs/dcpp/airdcpp.nix +++ b/makefu/2configs/dcpp/airdcpp.nix @@ -1,6 +1,6 @@ { config, ... }: { - makefu.airdcpp = { + krebs.airdcpp = { enable = true; extraGroups = [ "download" ]; web.port = 5600; @@ -14,8 +14,8 @@ dcpp = { shares = { # Incoming must be writeable! - incoming = { path = config.makefu.dl-dir + "/dcpp"; incoming = true; }; - audiobooks.path = config.makefu.dl-dir + "/audiobooks"; + incoming = { path = config.makefu.dl-dir + "/finished/dcpp"; incoming = true; }; + audiobooks.path = config.makefu.dl-dir + "/finished/audiobooks"; }; Nick = "makefu"; DownloadSpeed = "1000"; @@ -23,13 +23,13 @@ }; }; networking.firewall.allowedTCPPorts = - [ config.makefu.airdcpp.dcpp.InPort - config.makefu.airdcpp.dcpp.TLSPort + [ config.krebs.airdcpp.dcpp.InPort + config.krebs.airdcpp.dcpp.TLSPort ]; - networking.firewall.allowedUDPPorts = [ config.makefu.airdcpp.dcpp.UDPPort ]; + networking.firewall.allowedUDPPorts = [ config.krebs.airdcpp.dcpp.UDPPort ]; services.nginx.virtualHosts."dcpp.${config.krebs.build.host.name}.r".locations."/" = - { proxyPass = "http://localhost:${toString config.makefu.airdcpp.web.port}/"; + { proxyPass = "http://localhost:${toString config.krebs.airdcpp.web.port}/"; extraConfig = '' proxy_set_header Host $host; diff --git a/makefu/3modules/default.nix b/makefu/3modules/default.nix index 963649c63..7146174fb 100644 --- a/makefu/3modules/default.nix +++ b/makefu/3modules/default.nix @@ -2,7 +2,6 @@ _: { imports = [ - ./airdcpp.nix ./awesome-extra.nix ./deluge.nix ./forward-journal.nix