From 392db1ecdeed9cbe9a3e9177baa0ad36ecaf31d0 Mon Sep 17 00:00:00 2001 From: baduhai Date: Tue, 27 Dec 2022 13:53:22 -0300 Subject: [PATCH] deluge -> aria2 --- flake.nix | 4 +++- hosts/servers/alexandria/hosted-services.nix | 11 ++++------- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/flake.nix b/flake.nix index ccefd37..6424e83 100644 --- a/flake.nix +++ b/flake.nix @@ -17,10 +17,12 @@ agenix = { url = "github:ryantm/agenix"; inputs.nixpkgs.follows = "nixpkgs"; }; nixos-generators = { url = "github:nix-community/nixos-generators"; inputs.nixpkgs.follows = "nixpkgs-stable"; }; - + homepage = { url = "github:baduhai/homepage"; flake = false; }; dotfiles = { url = "github:baduhai/dotfiles"; flake = false; }; + + webui-aria2 = { url = "github:ziahamza/webui-aria2"; flake = false; }; }; outputs = inputs @ { self, nixpkgs, home-manager, nur, kmonad, nixpkgs-stable, home-manager-stable, deploy-rs, agenix, nixos-generators, homepage, dotfiles, ... }: { diff --git a/hosts/servers/alexandria/hosted-services.nix b/hosts/servers/alexandria/hosted-services.nix index fd504bf..9e6549a 100644 --- a/hosts/servers/alexandria/hosted-services.nix +++ b/hosts/servers/alexandria/hosted-services.nix @@ -138,18 +138,15 @@ locations."/".proxyPass = "http://127.0.0.1:9696"; }; - deluge = { + aria2 = { enable = true; - web.enable = true; - group = "hosted"; - openFirewall = true; + downloadDir = "/data/aria"; }; - nginx.virtualHosts."deluge.baduhai.me" = { + nginx.virtualHosts."aria2.baduhai.me" = { useACMEHost = "baduhai.me"; forceSSL = true; kTLS = true; - locations."/".proxyPass = "http://127.0.0.1:8112"; - }; + root = "${inputs.webui-aria2}/docs"; }; n8n.enable = true; nginx.virtualHosts."n8n.baduhai.me" = {