From 14a697a02e9f81b2ecb6fbee09c40c3992d91ff0 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Fri, 29 Mar 2024 13:15:21 +0530 Subject: [PATCH] remove aria2 daemon --- home/programs/aria2.nix | 6 ++++-- home/services/aria2c.nix | 38 -------------------------------------- home/services/default.nix | 1 - 3 files changed, 4 insertions(+), 41 deletions(-) delete mode 100644 home/services/aria2c.nix diff --git a/home/programs/aria2.nix b/home/programs/aria2.nix index a62b8e4..28725b9 100644 --- a/home/programs/aria2.nix +++ b/home/programs/aria2.nix @@ -2,13 +2,15 @@ _: { programs.aria2 = { enable = true; settings = { - bt-require-crypto = true; - bt-tracker = "udp://tracker.opentrackr.org:1337/announce"; continue = true; max-connection-per-server = 8; split = 8; min-split-size = "1M"; file-allocation = "falloc"; + check-integrity = true; + console-log-level = "warn"; + log-level = "notice"; + log = "-"; }; }; } diff --git a/home/services/aria2c.nix b/home/services/aria2c.nix deleted file mode 100644 index 35ccb72..0000000 --- a/home/services/aria2c.nix +++ /dev/null @@ -1,38 +0,0 @@ -{ config -, pkgs -, secrets -, ... -}: { - systemd.user.services = { - ariang = { - Unit = { - Description = "AriaNg: Web frontend for aria2c"; - After = [ "aria2c.service" ]; - }; - Install = { - WantedBy = [ "default.target" ]; - }; - Service = { - Type = "simple"; - ExecStart = '' - ${pkgs.merecat}/bin/merecat -n -p 6801 "${pkgs.ariang}/share/ariang" - ''; - }; - }; - aria2c = { - Unit = { - Description = "Aria2c Download Manager"; - Documentation = [ "man:aria2c(1)" ]; - }; - Install = { - WantedBy = [ "default.target" "ariang.service" ]; - }; - Service = { - Type = "simple"; - ExecStart = '' - ${pkgs.aria}/bin/aria2c --console-log-level=warn --log-level=notice --enable-rpc --rpc-secret="${secrets.aria2_config.rpc_secret}" --rpc-listen-port=6800 --rpc-allow-origin-all --rpc-listen-all --dir="${config.xdg.userDirs.download}" - ''; - }; - }; - }; -} diff --git a/home/services/default.nix b/home/services/default.nix index 0eba6ed..b481288 100644 --- a/home/services/default.nix +++ b/home/services/default.nix @@ -1,6 +1,5 @@ _: { imports = [ - ./aria2c.nix ./gpg-agent.nix ./transmission.nix ];